Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22270 > unrolled thread
| Started by | emf <emfril@gmail.com> |
|---|---|
| First post | 2013-02-11 03:47 -0500 |
| Last post | 2013-02-14 10:41 -0800 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
Web Start problem emf <emfril@gmail.com> - 2013-02-11 03:47 -0500
Re: Web Start problem "John B. Matthews" <nospam@nospam.invalid> - 2013-02-11 08:50 -0500
Re: Web Start problem Roedy Green <see_website@mindprod.com.invalid> - 2013-02-12 11:53 -0800
Re: Web Start problem Roedy Green <see_website@mindprod.com.invalid> - 2013-02-13 18:50 -0800
Re: Web Start problem "John B. Matthews" <nospam@nospam.invalid> - 2013-02-14 12:57 -0500
Re: Web Start problem markspace <markspace@nospam.nospam> - 2013-02-14 10:41 -0800
| From | emf <emfril@gmail.com> |
|---|---|
| Date | 2013-02-11 03:47 -0500 |
| Subject | Web Start problem |
| Message-ID | <kfaasd$qps$1@speranza.aioe.org> |
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
--
Natal Transits calculator
https://files.nyu.edu/emf202/public/jf/NatalTransits.html
[toc] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-02-11 08:50 -0500 |
| Message-ID | <nospam-C7EE88.08502711022013@news.aioe.org> |
| In reply to | #22270 |
In article <kfaasd$qps$1@speranza.aioe.org>, emf <emfril@gmail.com> wrote: [...] > <?xml version="1.0" encoding="UTF-8"?> > > <jnlp spec="1.0+" [...] > [...] > > <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? Yes; as a concrete example, cited below, the main class is in a package named "draw": <application-desc main-class="draw.GraphPanel"/> <https://sites.google.com/site/drjohnbmatthews/graphpanel> > If not, what else could the problem be? What did you try? What happened when you tried it? More resources may be found here: <http://stackoverflow.com/tags/java-web-start/info> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-02-12 11:53 -0800 |
| Message-ID | <5u6lh8ljm88m93buar6hk0s873t3elpfnc@4ax.com> |
| In reply to | #22270 |
On Mon, 11 Feb 2013 03:47:07 -0500, emf <emfril@gmail.com> wrote, quoted or indirectly quoted someone who said : >does not find the jnlp file (java.io.FileNotFoundException: The system >cannot find the path specified). JWS looks for a JNLP file twice, once for a URL you specify, (often cached) then it looks inside that file for a link to the most up-to-data copy. You seem to be using short DOS filenames. I would avoid that. Their support is optional. Do you have two copies of the JNLP? What are their precise file names? Java is case sensitive. Make sure all your names have the precise case. Normally there are no file: urls in jnlp. There should not be any if you are trying to use this on the web. -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-02-13 18:50 -0800 |
| Message-ID | <v6koh8hb41e5pbhg5ugisn4bp0v9ep4s24@4ax.com> |
| In reply to | #22270 |
On Mon, 11 Feb 2013 03:47:07 -0500, emf <emfril@gmail.com> wrote, quoted or indirectly quoted someone who said : ><jnlp spec="1.0+" We are on JNLP version 6 . If you specify 1.0 you must limit yourself drastically. -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-02-14 12:57 -0500 |
| Message-ID | <nospam-5A6223.12573214022013@news.aioe.org> |
| In reply to | #22302 |
In article <v6koh8hb41e5pbhg5ugisn4bp0v9ep4s24@4ax.com>, Roedy Green <see_website@mindprod.com.invalid> wrote: > On Mon, 11 Feb 2013 03:47:07 -0500, emf <emfril@gmail.com> wrote, > quoted or indirectly quoted someone who said : > > ><jnlp spec="1.0+" > > We are on JNLP version 6 . If you specify 1.0 you must limit > yourself drastically. Drastically? Here's a chart of elements and versions, for reference: <http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-02-14 10:41 -0800 |
| Message-ID | <kfjb3s$la0$1@dont-email.me> |
| In reply to | #22307 |
On 2/14/2013 9:57 AM, John B. Matthews wrote: > In article <v6koh8hb41e5pbhg5ugisn4bp0v9ep4s24@4ax.com>, > Roedy Green <see_website@mindprod.com.invalid> wrote: > >> On Mon, 11 Feb 2013 03:47:07 -0500, emf <emfril@gmail.com> wrote, >> quoted or indirectly quoted someone who said : >> >>> <jnlp spec="1.0+" >> >> We are on JNLP version 6 . If you specify 1.0 you must limit >> yourself drastically. > > Drastically? Here's a chart of elements and versions, for reference: > > <http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html> > Right, "spec" means JNLP specification, not Java version. The default is "1.0+", so that attribute would seem to do nothing.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web