File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action 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
Author

Download Swing application from web

ggg ppp
Greenhorn

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
Rancher

Joined: Mar 06, 2001
Posts: 13459

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

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+"
codebase="http://localhost:9080/testWeb"
href="test.jnlp">
<information>
<title>TEST JNLP</title>
<vendor> SLS </vendor>
<description>TEST JNLP</description>
</information>
<offline-allowed/>

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

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


Thanks in Advance.




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Download Swing application from web