Re-compile a Java Class from Jar

后端 未结 6 1348
长情又很酷
长情又很酷 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:18

    You probably have to specify the JAR file itself and not just the directory it resides in.

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

提交回复
热议问题