File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do I need a web server?

 
Mike Birken
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do I need a web server to make an application into a web start application? The advantage of applets were that I could just place them with my html files on someone elses server and it would dish them out just like any other file. Is there any way I can use web start with the account that came with my DSL connection (very limited account that I don't have direct server access to) for example?
- Mike
 
Mauro Marinilli
Author
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes of course!
Instead of placing your applet files your publish JNLP file(s) and JAR file(s), together with whatever you need more.
But wait; there is a subtlety: you have to add a new MIME typetoyour web server, that special one for JNLP files (see JNLP documentation or my book). Contact your webadmin to be sure they have such a MIME type added to their web server.
Cheers,
Mauro
 
Latha Kalaga
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mauro,
My understanding is that you add a new mime type to your browser such that when it comes across a JNLP link, it knows what to do.
What is a JNLP file? I thought through Web Start, you can only deliver jar files.
Thanks,
Latha
 
Hema Menon
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNLP file is nothing but an XML file. It contains information on the application(the logo, company details), securtiy information, the resources(which specify the jar files, native libraries, system properties etc) and application descriptors.
The webserver needs to return the right mime type when a link is accessed by a user. The webserver should return the mime type as application/x-java-jnlp file.
 
Wouter Zelle
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNLP specifies the format of an XML-file that describes the application. It tells the Web Start plugin where to find the jars, who created it, what it is, a homepage with more info, requirements, etc. Basically all the stuff that the Web Start plugin wants to show to the user or needs to install your application correctly.
You put a link to the JNLP-file in your HTML and the plug-in takes care of the rest. Quite convenient.
PS. Here you can find more info on the JNLP file format.
[ April 18, 2002: Message edited by: Wouter Zelle ]
 
Hema Menon
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use <nativelib> tag to specify native libraries like dll's if your java application uses one. It should be packaged as a jar and the application should be able to use System.loadLibrary to get the native libraries for use.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic