×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2007
    Location
    France
    Posts
    12

    Unhappy How to make java code illegible?

    Greeting,

    How can I avoid the power of decompiler? I don't use double in my game, if somebody else wants to get the code, a simplest decompiler can do the job in one second. If I want to sell my game, it shoudn't be an open source.

    I note some commercial game, even the name of class is a, b, c, d..., I guess in the code, it's seam thing.

    Which tool I can use to do it?

    Best regard.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: How to make java code illegible?

    The keyword to search for (here or using your favourite Internet search engine) is "obfuscator".

    If you want something more than that, switch to C++ and native code, instead of Java.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    France
    Posts
    12

    Re: How to make java code illegible?

    cool, thanks!!

  4. #4
    Registered User
    Join Date
    Mar 2007
    Posts
    5

    Re: How to make java code illegible?

    you can use the ProGuard

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    18

    Re: How to make java code illegible?

    Quote Originally Posted by wzjimmy
    you can use the ProGuard
    or RetroGuard

  6. #6
    Registered User
    Join Date
    Feb 2005
    Posts
    10

    Re: How to make java code illegible?

    ProGuard will solve ur problem easily.

  7. #7
    Registered User
    Join Date
    Apr 2007
    Location
    Hyderabad
    Posts
    21

    Re: How to make java code illegible?

    yes use the obfuscators as well dont write whole logic in the main MIDLet class
    since thats visible

  8. #8
    Registered User
    Join Date
    May 2007
    Posts
    13

    Re: How to make java code illegible?

    Hi,
    As suggested above by most of them u definetly can use any obfuscator in the market available like proguard,retroguard or any othe rif u like ..all these obfuscators what they do is try and change the function names variable names which are like a_ , abyte0 etc dependin upon there own algoritms...however since there are various types of obfuscators available and each one uses a differnt technique to do this ..it nearly impossible to get back the java code from class files using decompile techniques ...morover u may obsere that the code even won 't compile sometimes after u have decompiled it.. another thing is that decompiler tools like DJ java decompiler what they do is make an approximation of code in the sense most of the time we will se switch in place of the ifelse blocks we had added ...so stop worrying about it and enjoy ur development..however there are always chances that they might be able to figure out some logic from ur code afer long hours of analysis of the decompiled code..thats actually unavoidable

  9. #9
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Thumbs up Re: How to make java code illegible?

    ProGuard, absolutly.

    but... remember you have to use carefully classforname calls, and sometimes (a few time in my developer career), if your code is too complex (recursive nidifications, long 'if' blocks etc), ProGuard is unable to obfuscate it.

    Alfio

    Lead Programmer
    http://www.javartgames.com

Similar Threads

  1. [Pys60, 3rd Ed.] build problems
    By MHOOO in forum Symbian
    Replies: 3
    Last Post: 2007-04-09, 19:00
  2. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46
  3. Replies: 0
    Last Post: 2005-03-30, 12:59
  4. Can we make the Java API to access network parameter?
    By surasaku in forum Mobile Java General
    Replies: 0
    Last Post: 2005-03-22, 11:36
  5. Fixing a bug in an already obfuscated midlet (no source code) ?
    By SPGremlin in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-12, 21:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×