File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JAR Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JAR Security" Watch "JAR Security" New topic

JAR Security

Lefty Gomez

Joined: Nov 15, 2001
Posts: 14
I made an applpication and I want to distribute it on the internet but I want to know if there is a way to put all my code on a jar file and make that no one can open it and decompile my class files.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You need to do a search for obfuscators, which make it very difficult to decompile and understand your source code.
This has been discussed here alot, or you can do a google search.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Lefty Gomez

Joined: Nov 15, 2001
Posts: 14
I already had use it, but is there anyway that people could not open the jar file.
I agree. Here's the link:
subject: JAR Security
It's not a secret anymore!