This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Swing App and JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Swing App and JWS" Watch "Swing App and JWS" New topic
Author

Swing App and JWS

Kasi Viswan
Ranch Hand

Joined: Sep 27, 2008
Posts: 42
Hello

I have a Swing App that uses lots of 3rd party jar like log4j, jdom, iText etc. Is it advisable to put effort on JWS for deploying my application because I read all jars have to be digitally signed, how can i sign a third party jar, is it not content infringement.

Also I read that we can't use usual File open dialog box to read a file form the local machine when using JWS, We can't use java File object, is that true, am new to JWS.

Please advice.

Thanks
Kasi
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Kasi Viswan wrote:I have a Swing App that uses lots of 3rd party jar like log4j, jdom, iText etc. Is it advisable to put effort on JWS for deploying my application because I read all jars have to be digitally signed, how can i sign a third party jar, is it not content infringement.

Signing a jar file doesn't strike me as content infringement, especially when applied to a jar file which wasn't signed in the first place. It doesn't modify the code in any way. Of course if you think you have a legal issue you should read the licence for the product in question and interpret it yourself, or ask for proper legal advice.

Also I read that we can't use usual File open dialog box to read a file form the local machine when using JWS, We can't use java File object, is that true, am new to JWS.


Sure you can use File objects. As long as you sign the application and mark it with the "security all-permissions" elements.
Kasi Viswan
Ranch Hand

Joined: Sep 27, 2008
Posts: 42
Hi Paul,

Thanks for the advice. Is there a way to find if a jar file is already signed. How will i know if the jars that i am using for making use of jdom, log4j, iText, CSVReader... are signed. Is there a command that tells us if a Jar is signed or not?

Thanks
Kasi
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That's a good question. I didn't know the answer so I thought the tutorial might tell it to me. So I googled for "java jar tutorial". Not only was Sun's tutorial first on the list that Google returned, there were a bunch of subsidiary links under it. One was "Verifying Signed JAR Files". And the answer was right there.

Total elapsed time: under 30 seconds. For your reference that page is here: http://java.sun.com/docs/books/tutorial/deployment/jar/verify.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing App and JWS