Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiling rt.jar

843785Feb 5 2009 — edited Feb 6 2009
Hello.

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2009
Added on Feb 5 2009
17 comments
709 views