• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating Sun's Java code

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how ill-advised it is but if I want to temporarily update an origina Java class such as Container: shouldn't I be able to make the change to the version in src.jar and then implant the class version into rt.jar? I did this, and my change is being ignored.
Any help please?
Paul
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps your classpath is picking up a different version of the Container class in a different directory?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or are you using a browser, and it may be looking a different directory than you think.
 
Iain Lowe
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create and compile the class you want to replace. Then add it to the boot classpath using java -Xbootclasspath/p:<path to new class>. This command will prepend your class to the boot classpath and will override Sun's implementation without requiring you to muck around with rt.jar which could eventually screw up other working Java stuff you have.
[This message has been edited by Iain Lowe (edited October 03, 2001).]
[This message has been edited by Iain Lowe (edited October 03, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic