E
emf
I'm learning Web Start using eclipse but from a book that uses the
command prompt method. So in eclipse I have 2 projects: the first
contains files downloaded from the book's website (and does not contain
the programs in packages, and in the second I copy and compile the same
files but in packages as eclipse requires.
The jnlp file in the first project:
=============
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="file:///C:/MyStuf~1/MyFile~1/Java/worksp~1/JIES/10-Dep~1"
href="Lotto.jnlp">
<information>
<title>Lotto Application</title>
<vendor>Java In Easy Steps</vendor>
<homepage href="http://www.ineasysteps.com" />
<offline-allowed/>
</information>
<resources>
<jar href="Lotto.jar"/>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc main-class="Lotto"/>
</jnlp>
=============
works just fine and the program runs OK.
However, the jnlp of the second project:
=============
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="file:///C:/MyStuf~1/MyFile~1/Java/worksp~1/JavaIn~1/10_Dep~1/"
href="Lotto.jnlp">
<information>
<title>Lotto Application</title>
<vendor>Java In Easy Steps</vendor>
<homepage href="http://www.ineasysteps.com" />
<offline-allowed/>
</information>
<resources>
<jar href="Lotto.jar"/>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc main-class="Lotto"/>
</jnlp>
=============
does not find the jnlp file (java.io.FileNotFoundException: The system
cannot find the path specified).
Can the problem be that the program in the second project inside the jar
is in a package? If not, what else could the problem be?
Thanks,
emf
command prompt method. So in eclipse I have 2 projects: the first
contains files downloaded from the book's website (and does not contain
the programs in packages, and in the second I copy and compile the same
files but in packages as eclipse requires.
The jnlp file in the first project:
=============
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="file:///C:/MyStuf~1/MyFile~1/Java/worksp~1/JIES/10-Dep~1"
href="Lotto.jnlp">
<information>
<title>Lotto Application</title>
<vendor>Java In Easy Steps</vendor>
<homepage href="http://www.ineasysteps.com" />
<offline-allowed/>
</information>
<resources>
<jar href="Lotto.jar"/>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc main-class="Lotto"/>
</jnlp>
=============
works just fine and the program runs OK.
However, the jnlp of the second project:
=============
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="file:///C:/MyStuf~1/MyFile~1/Java/worksp~1/JavaIn~1/10_Dep~1/"
href="Lotto.jnlp">
<information>
<title>Lotto Application</title>
<vendor>Java In Easy Steps</vendor>
<homepage href="http://www.ineasysteps.com" />
<offline-allowed/>
</information>
<resources>
<jar href="Lotto.jar"/>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc main-class="Lotto"/>
</jnlp>
=============
does not find the jnlp file (java.io.FileNotFoundException: The system
cannot find the path specified).
Can the problem be that the program in the second project inside the jar
is in a package? If not, what else could the problem be?
Thanks,
emf