R
Roedy Green
I used the new stuff in JAWS 1.5 to hint to set up shortcuts.
I can't get it to work.
The launch icon is on the desktop, but with the wrong gif (a generic
one, not my app icon). When I click it I get this message:
An error occurred while launching/running the application.
Category: Launch File Error
Could not parse launch file. Error at line 0.
JNLParseException[ Could not parse launch file. Error at line 0.]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at
com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at
com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at
com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)
This is my JNLP file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.5+" codebase="http://www.mindprod.com/webstarts"
href="affirm.jnlp">
<information>
<title>Affirm 1.1: Living love affirmations</title>
<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/" />
<description>Living love affirmations</description>
<description kind="short">Living love affirmations</description>
<description kind="tooltip">Affirm</description>
<icon href="http://www.mindprod.com/images/affirm.gif" width="32"
height="32" />
<offline-allowed/>
<!-- hints for setting up shortcuts, prefer a shortcut for offline
operation -->
<shortcut online="false">
<!-- create desktop shortcut -->
<desktop/>
<!-- create menu item Affirmations/Affirm 1.1 -->
<menu submenu="Affirmations"/>
</shortcut>
</information>
<resources>
<!-- Acceptable JVMs in preferred order, best first -->
<j2se version="1.5.0_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_09"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_08"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_07"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2"
href="http://java.sun.com/products/autodl/j2se" />
<!-- application code -->
<jar href="affirm.jar" />
</resources>
<!-- application class with main method -->
<application-desc main-class="com.mindprod.affirm.Affirm">
<!-- command line arguments -->
<!-- minOn maxOn minOff maxOff in milliseconds -->
<argument>200</argument>
<argument>5000</argument>
<argument>2000</argument>
<argument>10000</argument>
</application-desc>
</jnlp>
Both the desktop shortcut and the menu item are 0 bytes long.
I previously tried setting up shortcuts using the Java control panel.
They were even worse. They did not even know javaws.exe was needed to
launch.
Has anyone else had success/failure with JDK 1.5.05 and JAWS
shortcuts?
I can't get it to work.
The launch icon is on the desktop, but with the wrong gif (a generic
one, not my app icon). When I click it I get this message:
An error occurred while launching/running the application.
Category: Launch File Error
Could not parse launch file. Error at line 0.
JNLParseException[ Could not parse launch file. Error at line 0.]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at
com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at
com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at
com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)
This is my JNLP file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.5+" codebase="http://www.mindprod.com/webstarts"
href="affirm.jnlp">
<information>
<title>Affirm 1.1: Living love affirmations</title>
<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/" />
<description>Living love affirmations</description>
<description kind="short">Living love affirmations</description>
<description kind="tooltip">Affirm</description>
<icon href="http://www.mindprod.com/images/affirm.gif" width="32"
height="32" />
<offline-allowed/>
<!-- hints for setting up shortcuts, prefer a shortcut for offline
operation -->
<shortcut online="false">
<!-- create desktop shortcut -->
<desktop/>
<!-- create menu item Affirmations/Affirm 1.1 -->
<menu submenu="Affirmations"/>
</shortcut>
</information>
<resources>
<!-- Acceptable JVMs in preferred order, best first -->
<j2se version="1.5.0_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_09"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_08"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_07"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2"
href="http://java.sun.com/products/autodl/j2se" />
<!-- application code -->
<jar href="affirm.jar" />
</resources>
<!-- application class with main method -->
<application-desc main-class="com.mindprod.affirm.Affirm">
<!-- command line arguments -->
<!-- minOn maxOn minOff maxOff in milliseconds -->
<argument>200</argument>
<argument>5000</argument>
<argument>2000</argument>
<argument>10000</argument>
</application-desc>
</jnlp>
Both the desktop shortcut and the menu item are 0 bytes long.
I previously tried setting up shortcuts using the Java control panel.
They were even worse. They did not even know javaws.exe was needed to
launch.
Has anyone else had success/failure with JDK 1.5.05 and JAWS
shortcuts?