Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Download Swing application from web

 
ggg ppp
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at "Java WebStart" which is included in the standard Java deployment.
 
ggg ppp
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic