aspose file tools*
The moose likes JNLP and Web Start and the fly likes How include jnlp.jar in Web project war file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "How include jnlp.jar in Web project war file?" Watch "How include jnlp.jar in Web project war file?" New topic
Author

How include jnlp.jar in Web project war file?

Milutin Markovic
Greenhorn

Joined: Mar 18, 2010
Posts: 12
I have HTML page in which is applet. Applet import javax.jnlp.FileOpenService and for that I need include jnlp.jar in my applet library folder. When I build project and run it, works fine.
In next step I create Web project that have html page in which is same applet that use FileOpenService. When I build web project, NetBeans create war file where is applet project but without applet lib folder(without jnlp.jar). Because of that I can't use fileOpenService. I try manually copy jnlp.jar on fiew places in Web project war file and try include in Web project lib folder bat without success.
Any help is appreciated.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Have you specified the jnlp.jar in the "archive" tag as mentioned here http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/applet.html


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Milutin Markovic
Greenhorn

Joined: Mar 18, 2010
Posts: 12
Thanks for help.
I have specified the jnlp.jar in the "archive" tag but still not solved problem



Applet getCodeBase= http:\\localhost:8080\WebBlog
Applet getDocumentBase= http:\\localhost:8080\WebBlog\htmlBlogEntry.jsp

I am not sure were put jnlp.jar. Need I put jnlp.jar inside AppletProject BlogApplets.jar?
Do i need to have someName.jnlp file?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Your jnlp.jar should be at the same level as your BlogApplets.jar and your html file which contains the applet code.
No. you do not require the jnlp file. It is required when you want to launch your application over Java Web Start.

 
wood burning stoves
 
subject: How include jnlp.jar in Web project war file?