• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

newbie help

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic