jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes Download Swing application from web Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Download Swing application from web" Watch "Download Swing application from web" New topic

Download Swing application from web

ggg ppp

Joined: Feb 24, 2011
Posts: 2
Hi All,
I have a web application , in that if i click "Download Software" link from the screen, it should download swing application which is similar to software downloads. Feature suppose to implement are.

1. Need to download the swing application from web
2. Create shortcut for the downloaded swing application
3. It should show some popups if the latest updates available for the download applcation
4. Downloaded application should expire for every six months.

Thanks in Advance. Please do needfull

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Have a look at "Java WebStart" which is included in the standard Java deployment.
ggg ppp

Joined: Feb 24, 2011
Posts: 2
Hi David,
Thanks for your response. As suggest ,I tried to implement the same as below
1. Created the jar for the swing application using fat plugin (with one jar option)
2. Created the JNLP file which has the jar ref entry for the above created jar and plcaed in web application.
3. Tried to launch this JNLP file onclick of link from the web application.

Just JNLP file got opened and not executed. And one more catch is,While analysing i found that in JNLP file i
have given the main calss as "com.test.app.TestMain" but in the jars Manifest file its been mentioned
as "com.simontuffs.onejar.Boot" .

Please advise.

JNLP File:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
<title>TEST JNLP</title>
<vendor> SLS </vendor>
<description>TEST JNLP</description>

<j2se version="1.2+" />
<jar href="TestWebStart.jar"/>
<application-desc main-class="com.test.app.TestMain" />

Manifest-Version: 1.0
Created-By: Fat Jar/One-JAR Eclipse Plug-In
Main-Class: com.simontuffs.onejar.Boot

Thanks in Advance.

It is sorta covered in the JavaRanch Style Guide.
subject: Download Swing application from web
It's not a secret anymore!