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 6 of 6

Thread: Forgot to back up

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Forgot to back up

    Well, i've been working on my game client Websterscape Pvp, and i had forgotten to back up one of my folders before updating something, the update went wrong and left me with huge errors. I was wondering if anyone can help me and turn this into a .java

    Thanks Web


    Downloading - client.class @ UppIT


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Forgot to back up

    You might want to look for something call a "decompiler" or "disassembler". Because of the nature of Java compiling into byte code, it makes it somewhat easier to re-construct the source. However, good compilers will optimize/jumble up the program logic to make re-creating the original code close to impossible. Also, these types of programs generally don't generate the correct names for stuff (I think java might be different, don't know), and will never have comments (maybe Javadoc, but I doubt the .class contains even that).

  3. #3
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Forgot to back up

    So you accidentally deleted all your .java code?

    I'm not sure I would bother with a decompile if you're not familiar with it. Just rewrite it all again

    // Json

  4. #4
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Forgot to back up

    I've spend to much time to rewrite it all

  5. #5
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Forgot to back up

    There's really not a whole lot we can do. Good Java compilers are designed to specifically obfuscate the logic so it's near impossible to reconstruct the original source code because they don't want the programs to be hacked/re-engineered.

  6. #6
    Member
    Join Date
    Jul 2009
    Posts
    31
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Forgot to back up

    That's why we have Eclipse;
    Keeps a copy of each file in your "workspace" folder. =\
    Great coding environment if you didn't know btw.

Similar Threads

  1. Use of scanner to return white space between the tokens
    By Alysosh in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: May 20th, 2009, 09:22 AM