This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Please Help me Out.....Where I am going Wrong Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Please Help me Out.....Where I am going Wrong" Watch "Please Help me Out.....Where I am going Wrong" New topic
Author

Please Help me Out.....Where I am going Wrong

Sandeep R Kumar
Greenhorn

Joined: Apr 24, 2007
Posts: 11
JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="http://localhost:8080/jwsdemo/" href="http://localhost:8080/jwsdemo/PrimusMile.jnlp">
<information>
<title>Primus</title>
<vendor>Saastha</vendor>
<description>Demonstration of Primus JNLP</description>
</information>
<resources>
<j2se version="1.4+"/>
<jar href="http://localhost:8080/jwsdemo/jardiff.jar" download="eager" main="false"/>
<jar href="http://localhost:8080/jwsdemo/jnlp.jar" download="eager" main="false"/>
<jar href="http://localhost:8080/jwsdemo/jnlp-servlet.jar" download="eager" main="false"/>
<jar href="http://localhost:8080/jwsdemo/javax.servlet.jar" download="eager" main="false"/>
<jar href="http://localhost:8080/jwsdemo/swing-layout-1.0.jar" download="eager" main="false"/>
<jar href="http://localhost:8080/jwsdemo/PrimusMile.jar" download="eager" main="true"/>
</resources>
<application-desc main-class="PrimusAttendance.src.primusattendance.LoginJFrame"/>
</jnlp> ]
at com.sun.javaws.LaunchDownload.getMainClassName(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

---------------------
------------------------
And
This is my JNLP file...
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://localhost:8080/jwsdemo"
href="PrimusMile.jnlp"
>
<information>
<title>Primus</title>
<vendor>Saastha</vendor>
<description>Demonstration of Primus JNLP</description>
</information>
<offline-allowed/>
<security>
<all-permission/>
</security>
<resources>
<j2se version="1.4+" />
<jar href="jardiff.jar"/>
<jar href="jnlp.jar"/>
<jar href="jnlp-servlet.jar"/>
<jar href="javax.servlet.jar"/>
<jar href="swing-layout-1.0.jar"/>
<jar href="PrimusMile.jar" main="true"/>
</resources>
<application-desc main-class="PrimusAttendance.src.primusattendance.LoginJFrame"/>
</jnlp>


It is not getting the main file which i mentioned in the <<application-desc main-class> tag.

If anyone Give a solution........


Thanks,<br />Sandeep
Sandeep R Kumar
Greenhorn

Joined: Apr 24, 2007
Posts: 11
I find the solution for the above said problem...but i am facing with a new problem now...i am getting the following error..

///Shown in the 'General' Tab
An error occurred while launching/running the application.

Title: Primus
Vendor: Saastha
Category: Unexpected Error

Unexpected exception: java.lang.Exception

////Shown in 'Exception' Tab
java.lang.Exception
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


What may be i am doing wrong ....my jnlp file is as follows..

//jnlp file...

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://localhost:8080/jwsdemo"
href="PrimusMile.jnlp"
>
<information>
<title>Primus</title>
<vendor>Saastha</vendor>
<description>Demonstration of Prmius JNLP</description>
</information>
<offline-allowed/>
<security>
<all-permission/>
</security>
<resources>
<j2se version="1.5+" />
<jar href="jardiff.jar"/>
<jar href="jnlp.jar"/>
<jar href="jnlp-servlet.jar"/>
<jar href="javax.servlet.jar"/>
<jar href="swing-layout-1.0.jar"/>
<jar href="PrimusMile.jar" main="true"/>
</resources>
<application-desc main-class="PrimusAttendance/build/classes/primusattendance/LoginJFrame"/>
</jnlp>


Someone Please give me a solution..
Siv. Pot
Greenhorn

Joined: Mar 18, 2009
Posts: 7
Hi,

We have a swing application that is launched via JNLP and it uses certain properties files as resource bundles in the code for rendering the UI strings and error messages. These properties files are packaged inside the application's jar files and loaded from there.

Now the requirement is that we need to load these properties files from a folder in the file system of the machine where the application is installed and not from the jar file. The reason for needing this is so that the user can edit the properties files if needed and also add a new language file whenever needed, without requiring to rebuild the jar file.

When we tried to load the properties file from a specific path, it is looking for the path on the individual client machines from where the JNLP application is being launched but not from the server machine where we have deployed the application. How can we load resource bundles from the server's file system in JNLP applications?

Any help is greatly appreciated.

Regards,
Siva.

Siv. Pot
Greenhorn

Joined: Mar 18, 2009
Posts: 7
Sorry. Wrong post.
 
jQuery in Action, 2nd edition
 
subject: Please Help me Out.....Where I am going Wrong
 
Similar Threads
JNLPFile error in webstart
Web Start Console :NoClassDefFoundError: javax/jms/JMSException
JNLPException ConnectException
Displaying Starting Application Progress bar
ClassNotFound Exception..