By any chance, you're not using the MainFrame class that was tacked onto Java3D
somewhere in com.sun, are you?  I don't know about the 1.2 release, but in J3D
1.1.3, I remember needing that function for something, and after puzzling for
hours why it wouldn't work on the web if I added a call to getCodeBase(),
opening the source and noticing the phrase we all love to hate, "Hack", written
at the header of this function.  It seems that the only thing this function does
is search through your current classpath in a vain attempt (for web usage,
anyway) to hunt down your location.

Not that I use MainFrame anymore (it was my first real J3D project), but does
anyone know if this problem was corrected in J3D 1.2?

George


>Date:    Tue, 4 Jul 2000 16:10:48 +0200
>From:    Marjon van den Broek <[EMAIL PROTECTED]>
>Subject: getCodeBase() problem in Java3D applet
>
>Hello,
>
>I want to retrieve the applet URL with getCodeBase() but it doesn't work with
>the Java3D applet. The return value is null. Has someone used this
successfully.
>
>greetings
>Marjon van den Broek


***************************************************************
* George Vilches                                              *
* Computer Scientist, Intelligent Systems Section             *
* Navy Center For Applied Research in Artificial Intelligence *
* Naval Research Laboratory (NRL), Code 5510                  *
* 4555 Overlook Ave., S.W.                                    *
* Washington, DC  20375-5337                                  *
* [EMAIL PROTECTED]                                    *
***************************************************************

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to