Compiling rt.jar
843785Feb 5 2009 — edited Feb 6 2009Hello.
I am trying to replace ClassLoader.java in java/lang/ with my own class.
When I get the ClassLoader from sources and compile it with
"C:\Program Files\Java\jdk1.6.0_10\bin\javac.exe" -g -target 1.5 -bootclasspath "C:\Program Files\Java\jdk1.6.0_10\jre\lib\rt.jar" ClassLoader.java
I get ClassLoader.class which is not same as in rt.jar.
And when I replaced ClassLoader.class in rt.jar with the compiled before ClassLoader.class,
My java program using this rt.jar is crashed.
Maybe my compilinig ClassLoader.java is not correct?