aspose file tools*
The moose likes JNLP and Web Start and the fly likes Creating a webstart app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Creating a webstart app" Watch "Creating a webstart app" New topic
Author

Creating a webstart app

Edward Morris
Greenhorn

Joined: Jun 29, 2006
Posts: 18
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

Joined: Aug 18, 2004
Posts: 243
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.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Edward Morris
Greenhorn

Joined: Jun 29, 2006
Posts: 18
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

Joined: Aug 18, 2004
Posts: 243
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

Joined: Jul 15, 2003
Posts: 1078
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

Joined: Jun 29, 2006
Posts: 18
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a webstart app
 
Similar Threads
struts---??
Creating a webstart app
Code Obfustication in java...
Beginner Java and XML questions
locking binary against decompiler