title: Re-compile a Java Class from Jar
body: <p>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. </p>
  
  <p>Now I want to compile it and add the compiled class file into the jar and run it. </p>
  
  <p>Not surprisingly I get multiple "cannot find symbol" errors for references of custom object that were in the jar file. </p>
  
  <p>I tried to compile the file by referencing the jar file in the classpath like so</p>
  
  <pre>
  C:/> javac  file.java  -classpath C:/folder/where/jar/is
  </pre>
  
  <p>but this doesnt seem to work... I get the same errors as if just doing</p>
  
  <pre>
  C:/> javac file.java
  </pre>
  
  <p>Is there a way to compile this individual class somehow referencing the other files in the jar?</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p>Errors I am getting while following some of the suggestions below here:</p>
  
  <pre>
  javac -classpath C:/jar/location.jar File.java
  
  File.java:226: cannot find symbol
  symbol  : class Stuff
  location: class com.shared.stuffers
                                Stuff s1 = new Stuff();
                                               ^
  </pre>
  
  <p>Stuff class is found in the Jar, but can not be seen by the javac program... I feel like I am doing something wrong but not sure where? Thanks.</p>