wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes How can I make use of WebStart? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "How can I make use of WebStart?" Watch "How can I make use of WebStart?" New topic
Author

How can I make use of WebStart?

Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
We are developing a swing based tool, which will initially be used as a stand alone application and after some time it would be web enabled.Hence the architecture is based on n-tier and we have clear seperation of GUI and server side logics.
Currently, the starting class is a JApplet and all other classed are derived from JFrame/JInternalFrame. I have read thru some of the Webstart articles. I would appreciate if you can clarify the following doubts.
#1 Can I use Webstart to install my Stand alone application and is there any guidelines?
#2 When my app become web enabled in the future, I can use Webstart and I can configure my JNLP file to invoke the main() method on my starting applet class.
Does it mean that I need NOT use JApplet at all to make my app web enabled.
#3 When I launch an app using Webstart, does it care about the browser on the client machine and how the webstart is linked with the browser on a client machine?
BTW I have just ordered the book written by Mauro.
Thanks in Advance
SR
Robert Ziel
Greenhorn

Joined: Apr 22, 2002
Posts: 28
hi,
just download it from the java website
and adjust your webserver add the mimetype jnlp
place a .jnlp file on your server for example see
the sun's website..
that should do the trick..
you can use a normal main application
hope this helps ,
Robert
Hema Menon
Ranch Hand

Joined: Oct 29, 2000
Posts: 569
1 Can I use Webstart to install my Stand alone application and is there any guidelines?
I believe it is possible.
#2 When my app become web enabled in the future, I can use Webstart and I can configure my JNLP file to invoke the main() method on my starting applet class.
If the application is deployed as a jar, manifest file can be specified with main class to launch the application thru webstart.
#3 When I launch an app using Webstart, does it care about the browser on the client machine and how the webstart is linked with the browser on a client machine?
The client needs to have Javawebstart installed, so that the browser understands how to launch a jnlp file. Sun's site has scripts to check if the client machine has java webstart installed or not.
Hema
Vishy Janardhan
Greenhorn

Joined: Jun 17, 2002
Posts: 7
#1 Can I use Webstart to install my Stand alone application and is there any guidelines?
Yes..most certainly u can. You just need to make up the jnlp file (referencing all the resources from the proper places)...deploy the jar files on the server.

#2 When my app become web enabled in the future, I can use Webstart and I can configure my JNLP file to invoke the main() method on my starting applet class.
Certainly. Just include the following tags in your jnlp file to invoke your main class...
<application-desc main-class="abc.xyz.MyMainClassThatUsesSwing">
</application-desc>

Does it mean that I need NOT use JApplet at all to make my app web enabled.
Yup.

#3 When I launch an app using Webstart, does it care about the browser on the client machine and how the webstart is linked with the browser on a client machine?

You need not start a application using the browser. Java web start runs independantly of the web-browser. The .jnlp file type is registered on your machine to java webstart. So, when a jnlp file is run...java webstart is invoked automatically. As an example..just create a .jnlp file in your local hard disk...and run it (say..double click in windows)....your deployed application would be automatically lauched without going through the browser.
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Hi Vish_J. Welcome to JavaRanch!
Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name:
here

You can also find the naming policy:
here
Thank You!


Rob
SCJP 1.4
Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
I have one more question:
What exactly do you mean by web enabled?
I can start the swing application using the JNLP file and it will down load the latest jar from some webserver.
While running the application thru webstart,similar to JSP, can each request from swing client be directed to the webserver to fetch the data from remote database
Thanks
Sri
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I make use of WebStart?