• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Swing App and JWS

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 24632
56
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 24632
56
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!