I have searched this, but I could\'n find or understand what I found. Now I\'m not a Java programmer, but I have the need to compile a single Java file into an existing
As far as I can understand you want to re-compile a single java file and replace it in an existing jar file..
So you compile it..
cmd>javac -classpath jar1.jar;jar2.jar my.company.MyClassToReplace.java
and replace it in the jar.
cmd>jar uf myJarFile.jar my/company/MyClassToReplace.class