This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

how to get web start working

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a desktop application developed using netbeans 6.5 IDE(not of importance)..I again using netbeans IDE converted the application to work using webstart.

I placed the .jnlp .html and .jar file in tomcat webapps directory. I am facing following problems.

1. When I try the link using Google Chrome it simply downloads .jnlp file everytime and does nothing else.

2. On using the link with Internet Explorer or Firefox..it first downloads .jnlp file then runs the application all right. But I want to know how to run the application when Tomcat server is not running ( I suppose working offline is the main advantage of using Webstart).. I cant type the url in browser and run it as it will show page not found as tomcat is not running..

3. If I copy the .jnlp file to some directory and the lib folder(my project needs some jar files) and double click it ,it runs the application all right. But I cant ask the client to manually copy the .jnlp file to his machine.

Pse help..
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the "shortcut" element in the jnlp file.
It can be configured so that the user gets a shortcut to your application on the desktop as well as Start->Programs
 
muktesh tripathi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info..But I require a little more help

my .jnlp file is as shown

<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://192.168.1.2:8081/retirement/" href="launch.jnlp" spec="1.0+">
<information>
<title>Basic Application Example</title>
<vendor>Sun Microsystems Inc.</vendor>
<homepage href="http://appframework.dev.java.net"/>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">Basic Application Example</description>


<offline-allowed/>

<shortcut online="true">
<desktop/>
<menu submenu="retire"/>
</shortcut>
</information>


<resources>
<j2se version="1.5+"/>
<jar eager="true" href="RetirementPlanningApp.jar" main="true"/>


<jar href="lib/appframework-1.0.3.jar"/>
<jar href="lib/swing-worker-1.1.jar"/>
</resources>
<application-desc main-class="retirementplanningapp.RetirementPlanningApp">

</application-desc>
</jnlp>


But still desktop icon or menu items are not created..Please help
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm.
Looks like you need to check your java settings.
If you are on Windoze,
start->settings->controlPanel->java->Advanced->shortcut creation.
 
muktesh tripathi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks but still not working..
Anything wrong with my .jnlp file....specially shortcut element???

thanks
 
muktesh tripathi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does my problem has to do anything with SIGNING jar files....I have not done that till now....
 
muktesh tripathi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:lol: Thanks I got the shortcut...had to manually clear cache..

But I want to know if client accidently deletes the shortcut on the desktop...and tries to re-download application from web...he will not get shortcut.....or is this happening with me only??? :roll:
 
Sheriff
Posts: 24594
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it should be difficult for you to try that yourself.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!