Re-compile a Java Class from Jar

后端 未结 6 1339
长情又很酷
长情又很酷 2020-12-16 05:08

I have an executable jar that has one class file with a wrong value. I requested that file from the author and corrected the value.

Now I want to compile it and add

6条回答
  •  情歌与酒
    2020-12-16 05:29

    You will want to compile your file like so:

    javac -classpath C:\folder\where\jar\is\the_jar_file.jar file.java
    

    per the javac usage instructions:

    C:\Console2>javac -help
    Usage: javac  
    

提交回复
热议问题