Results 1 to 5 of 5

Thread: Edit a .jar?

  1. #1
    JuBe is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default Edit a .jar?

    Hi,

    I created a .jar file but I can't figure out how to unpackage it and edit it with Eclipse. I don't have any other files for it (I changed computers and forgot to back up my workspace), just the .jar.

    So far, I've tried importing the file through Eclipse but when I try editing a class it says no source code. :(

    Is there any way to get back to the code or am I stuck with my .jar?

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    10

    Default

    Google "jad" and decompile your code. It won't be exactly the same, but it should, at least, be recognisable.

  3. #3
    JuBe is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default

    Maybe I'm doing something wrong, but its not working with .jar files. In the readme, it only gives instructions to decompile a .class.

  4. #4
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    a jar is just a zip file filled with .class files and resource files. So unzip it first, then decompile the unzipped .class files.
    My Hobby Project: LegacyClone

  5. #5
    JuBe is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

Similar Threads

  1. edit data??
    By Daniela_v in forum New To Java
    Replies: 4
    Last Post: 03-06-2009, 04:12 PM
  2. How To Edit/Add JSP Pages in NetBeans IDE
    By JavaForums in forum NetBeans
    Replies: 2
    Last Post: 02-17-2009, 12:14 PM
  3. Edit and compile
    By lmperator in forum New To Java
    Replies: 7
    Last Post: 01-03-2009, 06:15 PM
  4. Edit Command
    By viji83 in forum New To Java
    Replies: 1
    Last Post: 08-15-2008, 03:26 AM
  5. how to edit lines.
    By jason27131 in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 04:41 AM

Posting Permissions

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