• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Use -XBootClassPath Option in JAVA

 
Ranch Hand
Posts: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic