Results 1 to 4 of 4
  1. #1
    AVatch is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default Decompile a *.class file?

    Hi! I wanted to know if anyone could assist me with some resources or help in opening a .class file so that I can change a few lines in the class.

    From what I have read, i understand it must be decompiled, use of jad? But I cant get it to work properly, I would get an error along the lines:

    ./jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

    Can someone assist me in either getting this jad to run via terminal, or just in providing some guide in viewing and editing the content .class files.

    (Btw, I am using the LSST ETC open source program, which simulates a telescope, and I am interested in seeing how the program works, and where it specifies a few default parameters.)

    thank you for all the help and your time!!

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    You have to ensure that you have the shared library and that it's installed somewhere that jad can find it. There's a statically linked version of jad for linux here.

    Is LSST ETC open source? There's nothing I could see on their web site that says that (that I could see) - or Gemini ITC and www.gemini.edu/sciops whose code they credit.

  3. #3
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Quote Originally Posted by pbrockway2 View Post
    Is LSST ETC open source?
    Nope, hence why the OP has taken the JAR file, dearchived it, and is peering through the individual class files. I think he believes it's open source because it's not compiled to bytecode like one might expect of an EXE or DLL. I'm actually not sure what position to take on this one, to be quite honest...

  4. #4
    AVatch is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by Zack View Post
    Nope, hence why the OP has taken the JAR file, dearchived it, and is peering through the individual class files. I think he believes it's open source because it's not compiled to bytecode like one might expect of an EXE or DLL. I'm actually not sure what position to take on this one, to be quite honest...
    Thank you for the responses. I will just send an email to the person who made the program asking for permission to look at the code in the case that it is not open source.

    I was just curious to see how the code was written for educational purposes.

    Again though, thank you for your inputs!

Similar Threads

  1. Set file number on .class file
    By lmsf in forum Advanced Java
    Replies: 3
    Last Post: 03-24-2010, 07:38 AM
  2. Replies: 2
    Last Post: 10-01-2009, 12:02 PM
  3. converting java class file to exe file
    By satheeshtech in forum Advanced Java
    Replies: 5
    Last Post: 07-19-2009, 12:47 AM
  4. .class file to .java file
    By makpandian in forum New To Java
    Replies: 1
    Last Post: 02-20-2009, 07:46 PM
  5. Replies: 0
    Last Post: 05-13-2008, 07:16 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
  •