• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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........
 
Sandeep R Kumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry. Wrong post.
 
It runs on an internal combustion engine. This ad does not:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic