• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Updating Sun's Java code

 
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
 
"The Hood"
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"
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.
 
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).]
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!