• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Use -XBootClassPath Option in JAVA  RSS feed

 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How we can use -XBootClassPath option with JAVA. I Have heard that it can be used to change the system Class in JAVA. Please give me an example with the solution.It will be very usefull.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a java argument like -classpath. You can use it to refer to your replacement classes. If you use java -X to get the help screen for extended Java options, you'll see that the bootclasspath flag has several options that let you add your replacements to the beginning or end of the boot class path. You want to add yours to the beginning so they get loaded before the standard ones.

But trust me, don't do this. This way there be dragons. And you are crunchy and taste good with beer.
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not still cleared about the usage of -xBoothClassPath option suppose I want to change a function of System.java Class. So How to put this modified class folder in any other location and then how we will compile the other class which is using System class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!