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

Thread: How to edit .class files in Eclipse

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question How to edit .class files in Eclipse

    I decompiled a Jar file and got the following files

    Jar
    |+--.classpath
    |+--.project
    |+-- gh
    |+-- org
    |+--META-INF
    |+--Cert.ser

    I used the jar xfv command tool in decompiling the jar file...

    I only see class files in this folders...pls how can i edit them for recompilation...since i'm not able to see the .java files in it...

    I use Eclipse IDE...

    Thanks


  2. #2
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,104
    Thanks
    169
    Thanked 780 Times in 726 Posts
    Blog Entries
    5

    Default Re: How to edit .class files in Eclipse

    Class files are compiled - in other words you don't edit them, you edit the source .java files and compile those into .class files. Seems the jar you have does not contain the source code. I don't know the goal - but I'd advice against reverse engineering.

  3. The Following User Says Thank You to copeg For This Useful Post:

    xbill (April 22nd, 2011)

  4. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: How to edit .class files in Eclipse

    Thanks for your help..

    Chris..

Similar Threads

  1. How to create or edit .ser files in Jar files
    By xbill in forum Java IDEs
    Replies: 1
    Last Post: May 18th, 2011, 05:15 AM
  2. importing class files :S
    By b3ard in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 2nd, 2010, 03:45 AM
  3. Need help compiling java class files
    By peahead in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 11th, 2010, 08:04 AM
  4. Eclipse: How to use/edit shorcut keys.
    By Truffy in forum Java JDK & IDE Tutorials
    Replies: 3
    Last Post: December 3rd, 2009, 11:51 AM
  5. How to edit eclipse project builds
    By akhilachuthan@yahoo.co.in in forum Java IDEs
    Replies: 1
    Last Post: June 25th, 2009, 09:36 AM