aspose file tools*
The moose likes JNLP and Web Start and the fly likes newbie help 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 "newbie help" Watch "newbie help" New topic
Author

newbie help

Rajesh kannan
Greenhorn

Joined: Jun 06, 2005
Posts: 22
Hi,

I am trying to install an app using JWS.

What I did, I created a simple jar file,

add that jar file in jnlp file, like this:

<resources>
<j2se version="1.3+"/>
<jar href="tray.jar" />
</resources>

created a simple jsp with a link pointing to jnlp file.

Now what else should I do to install this jar file in my machine ? Please help
Shiao, Chern-Jer
Greenhorn

Joined: Aug 18, 2001
Posts: 7
for simplicity, just put the jar under root folder

%TOMCAT_HOME%/webapps/myapp/tray.jar

In JNLP, reference the jar file like this

<jar href="http://127.0.0.1:8080/myapp/tray.jar" main="true"/>

in real, you won't do this. you will put the jar under

/WEB-INF/lib/tray.jar

and use DownloadServlet to obtain the jar file and stream to client.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: newbie help