*
The moose likes JNLP and Web Start and the fly likes running Eclipse RCP application from JWS: jws starts, but closes immediatly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "running Eclipse RCP application from JWS: jws starts, but closes immediatly" Watch "running Eclipse RCP application from JWS: jws starts, but closes immediatly" New topic
Author

running Eclipse RCP application from JWS: jws starts, but closes immediatly

jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
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



[Thumbnail for jnlp.jpg]

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Probably because of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6705941

You can copy paste the jnlp file contents (surrounded by code tags) instead of uploading a screenshot.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
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?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Have you defined it in your jnlp file? Something like
jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
mmm, no, is that in the top-level jnlp? because the other ones are generated by eclipse... do you have an example of this somewhere on the net?

thank you for the help
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Top level? There should be one jnlp file.

Recommended reading http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#209
Check out the section "Can I rely on Class-Path in the manifest file?"
jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
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.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

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
thanks, it works now...
Terry Jahelka
Greenhorn

Joined: Mar 20, 2012
Posts: 1
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?

?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://iss203707.issinc.com:9080/TnsClient" href="tnsclient.jnlp">
<information>
<title>TNS Client</title>
<vendor>ISSINC</vendor>
<description>TNS Client Application</description>
</information>
<security>
<all-permissions/>
</security>
<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
<argument>-nosplash</argument>
</application-desc>
<resources>
<jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/>
<extension name="Wrapper feature" href="features/com.issinc.tnsClient_1.0.0.jnlp" />
<property name="osgi.instance.area" value="@user.home/Application Data/tns-client-rcp"/>
<property name="osgi.configuration.area" value="@user.home/Application Data/tns-client-rcp"/>
<property name="eclipse.application" value="com.issinc.tnsClient.core.application"/>
</resources>
<resources os="Windows">
<j2se version="1.5+" />
</resources>
</jnlp>

Thanks!
 
jQuery in Action, 2nd edition
 
subject: running Eclipse RCP application from JWS: jws starts, but closes immediatly
 
Similar Threads
Java and activeX ?
Download of jar freezes.
How to call Web Start app from Web Start app?
Is editing of client copy of jnlp file possible when using JWS?
Passing parameter from Web UI to RCP