JAWS shortcut failure



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?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: O.T. Computer Question(again)
    ... Minimize icon on my task bar but they've been removed with Version 7. ... I think you mean the Quick Launch bar (the bit usually just to the ... you might need to drag shortcuts on to ...
    (alt.smokers.pipes)
  • Re: Multiple Desktops Possible?
    ... I was refering to Quick launch task bar, not that seen when you press Start ... The shortcuts for applications that I rarely use are helpful to keep on ... needing to remove existing icons to make room for newer ones. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Launching Office 2007
    ... As we know the Microsoft shortcuts are a little different from the ... you right-click on them and place them in the Quick Launch toolbar. ... type Excel in the search bar and Excel pops up at the top of ... Did you do a network install, ...
    (microsoft.public.office.misc)
  • Re: Create .lnk file for quick launch shortcut?
    ... copied them to quick launch and everything works great. ... why the shortcuts have ... left-clicked on but the keyboard commands quit working. ... Launch thinking the appropriate .lnk files would be created but the ...
    (microsoft.public.windowsxp.customize)
  • Where does eclipse hide its default launch configuration ?
    ... I'm bouncing off of "out-of-memory" errors using current release of eclipse. ... I poked around to discover that this pokes a line into a .launch file, ...
    (comp.lang.java)