Lew <lew@lewscanon.com> wrote in
news:HaadncUdVKDaVa7anZ2dnUVZ_uvinZ2d@comcast.com:
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:
Almost never is messing with the bootclasspath correct. Undoubtedly
there is a better way that keeps you in "user space".
First of all, I want to thank you all for your answers. They certainly
have been very helpful. I hope I wouldn't need to write my own class
loader, since that seems like way to much work for what I want to do. I
was very hopeful of about changing the bootstrappath, especially since I
found out how to do it in Eclipse (it's on one of the tabs in the "Run
as" dialog box). However, that didn't do anything, and it looks like my
code is still not seen.
Maybe somebody else might have a better suggestion as to how to achieve
what I want to do: I simply want to comment out 3 lines of code that are
found in a class under com.sun.org.apache.xerces.internal.impl (so it's
not under java.* at all). As I've said, my approach was to look for a
way to override that file, by providing my own version. This wasn't a
success, and I'm starting to think Java doesn't allow this.
Any other suggestions?
Thanks,
Berk
Also, telling us which three lines would be helpful.