Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a webstart app

 
Edward Morris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people, I am working with an application built in Java which is here,

http://www.cs.bsu.edu/homepages/gnet/jedit.htm

you can download it and run to see whats going on from

http://www.cs.bsu.edu/homepages/gnet/Jedit42Demo.zip

Now what I want to do with this is to make it runnable from the website, something like this,

http://www.yworks.com/en/products_yed_about.htm

(Click on the Big Blue "Click here to webstart me now" button).

How to do this?
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Now what I want to do with this is to make it runnable from the website

How to do this?[/QB]


You will need to do two things:

1. Make a jnlp file that describes the application and make a hyperlink to that file from the webpage. If you right click the .jnlp link from your post and 'save as ...', then open with wordpad you can see the basics of what you have to write.

2. You will need to sign your jar file otherwise webstart will refuse to run it. You should be able to find tutorials on the web to do this.

Cheers, Jared.
 
Edward Morris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please point me to some good tutorials for getting done with this right away? You can assume I'm a total newbie with this.
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This site has a lot of good stuff about webstart things:

http://www.vamphq.com/jwslinks.html

As for signing the jars, start with this:

http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jarsigner.html

Cheers, Jared.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jared Cope:
Hi,



You will need to do two things:

1. Make a jnlp file that describes the application and make a hyperlink to that file from the webpage. If you right click the .jnlp link from your post and 'save as ...', then open with wordpad you can see the basics of what you have to write.

2. You will need to sign your jar file otherwise webstart will refuse to run it. You should be able to find tutorials on the web to do this.

Cheers, Jared.


An unsigned JAR can be run in the sandbox. If you want all permissions it needs to be signed. A calculator, for example, would not need permissions and have little reason to be signed. An application that must connect to databases and write files would probably need all permissions and need to be signed.
 
Edward Morris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for help guys, but in my quest for "SIMPLE" stuff, i found this and it did it all

http://www.cokeandcode.com/info/webstart-howto.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic