Hello, Is there a way to put some security in the jar files? the java codes are inside the jar file how do i prevent user to see my java codes...

Recommended Answers

All 2 Replies

You don't have to put the source code in the jar, so don't!
You do have to put the class files, so there's no way to stop someone looking at the byte codes and trying to reverse-engineer a source version. You can use a tool called an obfuscator to remove all uneccessary info, and mix up the byte codes so they still work the same but it's very difficult to reverse engineer.
Just google Java obfuscator

Thank you for the reply.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.