Results 1 to 2 of 2
Thread: Protect Jar File
- 11-29-2011, 09:45 PM #1Member
- Join Date
- May 2011
- Rep Power
Protect Jar File
I will soon be releasing a jar file to a lot of people to use a program I am making but I want to know how to protect my files. I know that someone can just change the .jar extension to .zip and extract all the .class files and basically see the code that exists. Is there anyway to easily prevent this? I will be releasing my jar as a JApplet on webpage and possibly a desktop app if I can solve these issues.
- 11-29-2011, 09:59 PM #2
Re: Protect Jar File
There are some trivial ways to keep people from looking at the logic of your code.
Obfuscation is one.
Another way would be to use a custom class loader, store your class files encrpypted and have your classloader decrypt them as they are read. This raises the difficulty level a bit but doesn't stop a programmer from creating a class file and then decompiling it.
If someone can get your jar file, they can extract and decompile your code.
- By ozzyman in forum Forum LobbyReplies: 27Last Post: 11-22-2012, 09:32 PM
- By leotreim in forum AWT / SwingReplies: 1Last Post: 07-24-2011, 10:50 PM
- By msv1022 in forum Advanced JavaReplies: 7Last Post: 05-16-2011, 01:10 PM
- By bababoo in forum Reviews / AdvertisingReplies: 0Last Post: 01-12-2011, 05:36 PM
- By anthrax in forum EclipseReplies: 5Last Post: 10-14-2009, 04:43 PM