Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: prevent class files from de-compilation in core java ??

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Location
    Earth
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default prevent class files from de-compilation in core java ??

    I know the java code, class files. I know creating jar files and running jar files on Command Prompt

    Recently, I have tried to create EXE Files with exe4j , jsmooth and "jar 2 exe"

    But, I am not satisfied with all this. When I create exe file with exe4j and jsmooth, it run very well but "EXE" file require all class files for execution, if I place exe to a different place where class file is not present, it will not run..

    Is there a way to convert jar file or all class files into exe files ?? I want to prevent my java class files from reverse engineering...

    I am thinking to create an exe that will not require any class file for execution.

    OR can you please tel me how to protect java class files so that they can never be de_complied with any de_compiler ??

    I am looking forward to a positive reply from all online and offline users !


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,819
    Thanks
    55
    Thanked 2,344 Times in 2,315 Posts

    Default Re: prevent class files from de-compilation in core java ??

    how to protect java class files so that they can never be de_complied with any de_compiler
    I haven't heard of a way. obfuscation seems to be the only way to slow down someone from seeing your code.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Location
    Earth
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: prevent class files from de-compilation in core java ??

    Quote Originally Posted by Norm View Post
    I haven't heard of a way. obfuscation seems to be the only way to slow down someone from seeing your code.
    I am tried of searching on internet !! I have searched and viewed a lot of pages that provides the suggestion obfuscation, but, I am unable to do anything practical code on obfuscation...

    please provide some practical code to help me !!

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,819
    Thanks
    55
    Thanked 2,344 Times in 2,315 Posts

    Default Re: prevent class files from de-compilation in core java ??

    I don't have anything.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,354
    Thanks
    182
    Thanked 832 Times in 775 Posts
    Blog Entries
    5

    Default Re: prevent class files from de-compilation in core java ??

    Is there a way to convert jar file or all class files into exe files ??
    With the exe creators I've used there was an option to allow you to pack all class files into the exe if you so desire. Been a while since I've done this so can't guide specifically, but read the docs for the program you are using.

    OR can you please tel me how to protect java class files so that they can never be de_complied with any de_compiler ??
    I'm sure there are several open source code obfuscators - the only one I've tried (this was years ago) was ProGuard. Worked well to obfuscate code and make it harder to reverse engineer.

  6. #6
    Junior Member
    Join Date
    Apr 2013
    Location
    Earth
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: prevent class files from de-compilation in core java ??

    can you tell about the working of progaurd ?? I have progaurd 4.11, it has bin folder, build folder , docs folder, example folder, lib folder and src folder , CO-PEG can you help me in making the class files much more secured ??

  7. #7
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    848
    Thanks
    0
    Thanked 158 Times in 141 Posts

    Default Re: prevent class files from de-compilation in core java ??

    I know that there are professional tools that claim that they can transform any java application into a C++ application. So if you are really serious about it that would be an option for you.
    But in general there is nothing you can do against reverse engineering of a java application. That is the case for all interpreted languages.

  8. #8
    Member jdv's Avatar
    Join Date
    Jul 2014
    Location
    This Land
    Posts
    80
    Thanks
    0
    Thanked 8 Times in 8 Posts

    Default Re: prevent class files from de-compilation in core java ??

    There are several tools for encrypting, obfuscating and licensing Java classes. Most work by wrapping your main class with their own, and encrypting the classes that are compiled with a shared key before assembling them into special jarfiles.

    As an example, see: Wibu-Systems | Software Protection, Software Licensing, Access Protection, Document Protection - Wibu-Systems

    There are others; I just happen to know about this one.

Similar Threads

  1. Java compilation problem.. Please Help Me!
    By amwani in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 1st, 2013, 08:51 AM
  2. JAVA API : Compilation error
    By Roopali in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 26th, 2013, 06:39 AM
  3. Java files compilation with java code
    By stallapp in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: July 14th, 2011, 09:12 AM
  4. Methods in java class files are not recognized.
    By Girish in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 18th, 2010, 06:44 AM
  5. Need help compiling java class files
    By peahead in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 11th, 2010, 09:04 AM