• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How include jnlp.jar in Web project war file?

 
Milutin Markovic
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Milutin Markovic
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic