I am trying to change one .class file in a .jar package. I am changing the .java text and then compiling, but if I do this through terminal or through Eclipse, I get compiler errors (seemingly because the compiler does not recognize some ImageJ specific code). What is the best way for me to change one .class file within a .jar. My current methods of using javac or compilers are not working.
After successfully altering the .class file, can I simply compress the package as a .zip then change the extension to .jar, or do I need to perform additional commands? Classpaths should remain the same, as I am not changing the names of any of the files. Thanks!