Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to protect the jar files from reverse engineers

Bahar Çağlar November 5, 2012

Hi,

I have a jira plugin, and I want to put it to marketplace. (paid via atlassian)

There is a field in the form of listing the add-on: Binary URL

I put my jar file to an address. But I do not want to anyone to extract my "example.jar" file and access my source.

Thanks in advance

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2012

1/ First, compile your code with -g:none (to eliminate debug info)

and

2/ Second, you can obfuscate your code using an obfuscator

Keep in mind that you cannot completely hide your code. You can only make the attempts to reverse engineer the code harder, that's all.

This is why I would advise against it. If you have a bug, the stack trace will point to the obfuscated code, which is painful to determine in real code.

TAGS
AUG Leaders

Atlassian Community Events