running Eclipse RCP application from JWS: jws starts, but closes immediatly
jan dressen
Ranch Hand
Joined: Oct 25, 2007
Posts: 47
posted
0
when is start my eclipse RCP application from webstart by running the JNPL file i get the following lines in the console and after that it shuts down...
JNLP JREDesc in Component ignored: null
JNLP JREDesc in Component ignored: null
complete console output pasted below
the product id is correct as configured in my product configuration file...
the only thing i did extra was comment out all jars that refer to WPF files because they keep crashing when installing my app, i read somewhere on the internet that that should be no problem to comment out those lines...
can anyone help?
my main jnlp file is attached to this message
Java Web Start 1.6.0_13
Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\bvanvelsen
----------------------------------------------------
c: clear console window
...
...
...
and so on...
----------------------------------------------------
JNLP JREDesc in Component ignored: null
JNLP JREDesc in Component ignored: null
ok, I can now download and "run" the application. that is, untill i run into this exception: java.lang.NoClassDefFoundError: antlr/CommonToken this comes from the antlr.jar and is located on the classpath of one of my eclipse plug-ins. this jar is also downloaded with webstart, so why cant it load the class?
when I create the jars from my application then it creates a jar for each plug-in in my app. But on the classpath of some of those plug-ins there are references to other jars, and those jars cannot be found. so in an app with 10 plug ins I have 10 jars with an JNLP or each jar. and then there is one"root jnlp" that contains a reference to my product which i can use to start my application.
jan dressen wrote:. so in an app with 10 plug ins I have 10 jars with an JNLP or each jar. and then there is one"root jnlp" that contains a reference to my product which i can use to start my application.
You should be having one jnlp file. In that file you can refer to the other 10 jars like I mentioned in my previous post.
jan dressen
Ranch Hand
Joined: Oct 25, 2007
Posts: 47
posted
0
thanks, it works now...
Terry Jahelka
Greenhorn
Joined: Mar 20, 2012
Posts: 1
posted
0
Hi,
I'm having the exact same error/symptoms. As you stated in one of your posts, I have a JNLP file per JAR that was generated via Eclipse plus a top-level (root) JNLP included below. Could you provide details on the steps you took to resolve this?