• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do I need a web server?

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic