Results 1 to 5 of 5
  1. #1
    suckAtJava is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default trying to re-compile a class file....

    I have a .jar file that I've opened in DJ Decompiler and then I've made a change and saved that as a .java file. How can I get it back into one piece so I can test the change?

    This is nothing sinister, I just want to see if an applet looks different in the way I have it but can't figure out how to get it back to the jar state so I can run it.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default Re: trying to re-compile a class file....

    You can use the jar command (comes with the JDK) to create a jar file.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    suckAtJava is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: trying to re-compile a class file....

    Hmm....I have the Java EE SDK installed. Do I need anything else to take advantage of those commands?

  4. #4
    suckAtJava is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: trying to re-compile a class file....

    forget it....I just didn't have C:\Program Files\Java\jdk1.6.0_25\bin in the PATH. I'll give that a shot...

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default Re: trying to re-compile a class file....

    I don't think so. Having the JDK's bin folder on the PATH will make using the commands in the bin folder easier to use.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 5
    Last Post: 03-26-2012, 07:11 PM
  2. Cannot compile public class
    By shobitbeltangdy in forum Advanced Java
    Replies: 5
    Last Post: 09-25-2011, 11:37 PM
  3. Replies: 0
    Last Post: 03-27-2011, 05:49 AM
  4. unable to compile class for jsp
    By ashok bhagat in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-26-2010, 08:40 AM
  5. [SOLVED] Java Class won't compile
    By kaizen in forum Java Applets
    Replies: 9
    Last Post: 10-18-2008, 06:55 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
  •