Hi Matt,

we invoke the JRE using a command of the form

java -Xbootclasspath/p:javafix.jar -cp other_jars classname

The /p on the bootclasspath prepends javafix.jar to the bootclasspath so
that first the JVM searches in our javafix archive which contains fixes
for some bugs in classes loaded from rt.jar, then the normal
bootclasspath followed by the jars specified in the -cp option.

If you use the documented -Xbootclasspath without the /p all the normal
bootclasspath would also have to specified and finding out just what the
normal bootclasspath should be is not that easy. The /p saves having to
work out the normal bootclasspath.

Using this technique it is also possible to load later versions of swing
than that bundled with JDK 1.2.

As the bugs are fixed in the JDK we will remove our fixed versions of
the classes from javafix.jar.

Tim.

Matthew Carpenter wrote:
> 
> > We are currently working around the bug by loading in a
> > fixed
> > version of the JPopup code via -Xbootclasspath/p: (the /p is not
> > documented and I only found out about by looking at the source code
> > for
> > the JVM, but it is very useful for workarounds to class bugs in
> > rt.jar).
> 
> It's nice to have a workaround.  What does /p do?  Thank you.
> 
> Matt
> ===
> BACS, CNI, CNE, CNA
> [EMAIL PROTECTED]
> ------------------------------
> Enterprise Information Systems
> *Network Consulting & Support
> *Integration
> *Custom Application Development
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com

-- 
Tim Stevenson
Surpac Software International
162A Roslyn Avenue, Blackmans Bay, Tasmania, Australia 7052
Phone/Fax:      +61 3 62294610
Home Phone:     +61 3 62298866
Email:          [EMAIL PROTECTED]
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to