This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Protect Jar Content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Protect Jar Content" Watch "Protect Jar Content" New topic
Author

Protect Jar Content

Mercurio Savedra
Greenhorn

Joined: Dec 04, 2005
Posts: 25
Can I use any tool or utility to make a content of a JAR file not accessible to unzip?
Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
No way Jose!


Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

You might be able to password protect it like regular ZIP files can be, but then you won't be able to use it in Java without some kind of custom class loader that can load classes from a password protected ZIP file.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mercurio Savedra
Greenhorn

Joined: Dec 04, 2005
Posts: 25
this is just that i want to do , but some information how to protect the jar content and how configure the classloader
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Protect Jar Content
 
Similar Threads
view content of file in a jar file
Executable jar Failed to load Main-Class manifest attribute
JAR and Class file reader
Importing a jar file into WAS 3.5
different size of jars created by ANT and batch command