This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > August 2004 > GetBrowser error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| mohmina 2004-08-03, 7:17 pm |
| HI every one
I am new to VRMl, and while trying to use the VRML java EAI i keep getting
the same error when using getbrowser methode
i've changed the classpath a million times, it worked for the compilation
yet the execution shows the same error
java.lang.NoClassDefFoundError: vrml/external/Browser
i have win2000
cosmo2.1
SDK/JRE 1.4.2_04
could any body help please????
| |
| Jeremy Pitten 2004-08-03, 7:17 pm |
| You're using the wrong java VM, cosmo only works with the old microsoft jvm.
If you have to use the sun jvm (which is a perfectly reasonable thing to
want to do) then you need to find a vrml browser plugin that supports it.
"mohmina" <afmtsmn@private> wrote in message
news:a5e155e394d437d1d6d68e314ba9d711@localhost.talkaboutprogramming.com...
> HI every one
>
> I am new to VRMl, and while trying to use the VRML java EAI i keep getting
> the same error when using getbrowser methode
>
> i've changed the classpath a million times, it worked for the compilation
> yet the execution shows the same error
>
> java.lang.NoClassDefFoundError: vrml/external/Browser
>
>
> i have win2000
> cosmo2.1
> SDK/JRE 1.4.2_04
> could any body help please????
>
>
| |
| Muaddib 2004-08-04, 7:17 pm |
| We have step-by-step instructions at VRSpace:
http://www.vrspace.org/vr_sfaq.html
and
http://www.vrspace.org/docs/client.html
And, yes, the EAI certainly does work with Contact, Cortona, and Cosmo
(multiuser servers run off of it, with the exception being ABNet), but
you won't find a plugin that works with Sun Java.
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| Joerg Scheurich aka MUFTI 2004-08-04, 7:17 pm |
| > We have step-by-step instructions at VRSpace:
> And, yes, the EAI certainly does work with Contact, Cortona, and Cosmo
Message from cosmoplayer/netscape in the java console:
| Netscape Communications Corporation -- Java 1.1.5
| Type '?' for options.
| JIT compiler installed.
| java.lang.ClassNotFoundException: vrml/external/Browser
| WARNING - remember netscape.security commented out - look for JAS in code
|
| WARNING - netscape security commented out
|
| EAI: opened port, ready for data
| [2004/08/04 15:57:21.151] INFO AppletEventDispatcher : LogDebug = false
All i get is a object with the text "loading", which vanishs, if you
click to it.
Any comments ?
so long
MUFTI
--
.... bearbeiten sie die Mehrkanallinien von Kommunikationen, auf,
welchem Sie registriert werden
aus einer Werbemail, Stichwort: rfc 2387 ?
| |
| R. Russell Kinter 2004-08-05, 11:15 pm |
| hi MUFTI,
VRSpace currently only works with I.E. and Contact.
Russ Kinter
Joerg Scheurich aka MUFTI <rusmufti@helpdesk.rus.uni-stuttgart.de> wrote in message news:<cer1cq$8n0$1@infosun2.rus.uni-stuttgart.de>...
>
>
> Message from cosmoplayer/netscape in the java console:
>
> | Netscape Communications Corporation -- Java 1.1.5
> | Type '?' for options.
> | JIT compiler installed.
> | java.lang.ClassNotFoundException: vrml/external/Browser
> | WARNING - remember netscape.security commented out - look for JAS in code
> |
> | WARNING - netscape security commented out
> |
> | EAI: opened port, ready for data
> | [2004/08/04 15:57:21.151] INFO AppletEventDispatcher : LogDebug = false
>
> All i get is a object with the text "loading", which vanishs, if you
> click to it.
>
> Any comments ?
>
> so long
> MUFTI
| |
| Muaddib 2004-08-05, 11:15 pm |
| Heya MUFTI,
What Russ says is true. We only work with IE, BS and BM Contact.
But I interpreted you to be saying that your Netscape & Cosmo combo are
not working with the EAI in general, because you shouldn't get this
error trying to load up any EAI app. Assuming that, here is a full
explanation of what is most likely occurring:
As you probably know, there are two reasons to get the:
java.lang.ClassNotFoundException: vrml/external/Browser error
A) You have Sun Java enabled.
B) You have a classpath problem.
A is easy to detect. If the java console says the word sun anywhere
then you know this is the case. For example,
java.lang.NoClassDefFoundError: vrml/external/field/EventOutObserver
<snip>
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
...
Your situation is clearly not A, since you are using Netscape's Java.
Yes, there are really three javas! Sun, IE, and Netscape ( and even more
after that :) ). In the Netscape 4.* situation, here is the setup:
Let's synchronize directories, this is where my Netscape 4.8 is installed:
C:\Netscape\Communicator\Program
The plugins are stored in C:\Netscape\Communicator\Program\Plugins
As you probably know, when you want to switch plugins ( for example, I
have Contact and Cosmo installed for netscape ) you change the names of
dll for the plugin you don't want to use. To not use Contact, change
the names to:
_npbxpro.dll
_npbx3dpro.dll
_npbx3d.dll
Leaving cosmo to run with
npcosmop211.dll
You are using the EAI, so the question is where are those java classes
being loaded from. When you have error B) either 1) your system is
completely messed up ( must have been changing things under the hood )
so just reinstall, or 2) you have two or more plugins installed, and
Netscape is trying to load up the classes for the wrong plugin.
How does it know which plugin's EAI classes to load up? With Netscape
there are two steps. First, all of the jars and classes in
C:\Netscape\Communicator\Program\java\classes
are loaded up ( this is the core directory ).
Second, this isn't entirely correct, but the plugin that is currently
working, i.e. cosmo, will look for its classes in the plugins directory:
C:\Netscape\Communicator\Program\Plugins\npcosmop211.jar.
When I finally got the time to check out your question, I wiped the dust
off my Netscape 4.8 installation, and opened an EAI example. I noticed
I was running Contact, so I underscored its dlls in the Plugins
directory, restarted, and found that I was running Cosmo. Then I
noticed the deadly NoClassDefFoundError. How is that possible, I
thought? How can the Contact classes be loading, instead of Cosmos, when
I don't even see a jar for them in the Plugins directory? I googled it,
and found out that Contact doesn't play by the rules, and actually
places its classes in
C:\Netscape\Communicator\Program\java\classes\vrml\...
which is a severe nono, since it means that their classes are always
loaded first ( C:\Netscape\Communicator\Program\java is the core classes
directory ). I change the directory name to
C:\Netscape\Communicator\Program\java\classes\_vrml\...
and it worked.
Bottom line is this, if you have Contact installed, make sure that you
change the name of that directory when using other plugins. Bottomer
bottom line, make sure that all jars and classes for the other plugins
are somehow renamed before trying to run EAI for a plugin. If you still
are having problems, reinstall Cosmo.
Good Luck!
Rob
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| Joerg Scheurich aka MUFTI 2004-08-06, 7:15 am |
| > In the Netscape 4.* situation, here is the setup:
> Let's synchronize directories, this is where my Netscape 4.8 is installed:
> C:\Netscape\Communicator\Program
Oops, i forgot to say, that is was using netscape and cosmoplayer
running under IRIX64 - SGI UNIX 8-(
> The plugins are stored in C:\Netscape\Communicator\Program\Plugins
$ ls /var/netscape/communicator/plugins32
....
libcosmoplayer.so
....
npfreewrl.so
So i have a plugin for a anicent version of FreeWRL for IRIX too.
Maybe this is the reason for the failure...
> Second, this isn't entirely correct, but the plugin that is currently
> working, i.e. cosmo, will look for its classes in the plugins directory:
> C:\Netscape\Communicator\Program\Plugins\npcosmop211.jar.
It looks like, the IRIX64 version is very different in this point:
$ ls /var/netscape/communicator/java/classes
....
npcosmop.jar
Sorry for causing confusion 8-(
so long
MUFTI
--
Muschelfluchtabfolge
(Stichwort: Shell escape)
| |
| Muaddib 2004-08-06, 7:17 pm |
| MUFTI,
> Oops, i forgot to say, that is was using netscape and cosmoplayer
> running under IRIX64 - SGI UNIX 8-(
Yes, this is an important detail ;) But I do believe the basic
concept should be the same. I have worked with SGI so :)
>
>
> $ ls /var/netscape/communicator/plugins32
> ...
> libcosmoplayer.so
> ...
> npfreewrl.so
>
> So i have a plugin for a anicent version of FreeWRL for IRIX too.
> Maybe this is the reason for the failure...
If you see that you are running cosmoplayer, then you shouldn't have
to do anything with these so ( = dll for unix ). To be safe though, you
could change the name for freewrl.so.
> It looks like, the IRIX64 version is very different in this point:
>
> $ ls /var/netscape/communicator/java/classes
> ...
> npcosmop.jar
Hmm, interesting, for the IRIX version they put the cosmo jar inside
the core java classes directory. Do you see any other vrml classes
there, for example, those for freewrl? They could be in a jar, or in
vrml/classes/... subdirectories. If so, then change the names. You can
check the contents of a jar by typing jar -tf jarfile.
If it still doesn't work, then Netscape can't even find one set of
the EAI classes in its core directory which would be suprising, but
certainly not impossible. :)
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| mohmina 2004-08-07, 11:15 pm |
| Hi Guys
thanks for every thing but am sorry to tell u that i've already tried
every thing you told me previously, and with the MSJVM on and the
CLASSPATH correctly specified it still dosen't work.
with the MSJVM the class cant be found at all, and even a simple java
applet with no specification to VRML whatsoever doesn't work, i get this
message "class applet .... not found"
could u please advice on what am i doing wrong or missing!!!
thanks
| |
| mohmina 2004-08-07, 11:15 pm |
| You may also need to know that i get this message in my console
IOException Loading Archive: file:/C:/Documents and
Settings/AVCamp/vrml.jar"
java.io.FileNotFoundException: \C:\Documents and
Settings\AVCamp\vrml.jar"
at java/io/FileInputStream.<init>
at sun/net/www/protocol/file/FileURLConnection.connect
at sun/net/www/protocol/file/FileURLConnection.getInputStream
at com/ms/vm/loader/JarArchiveSet.loadNextJar
at com/ms/vm/loader/JarArchiveSet.getResourceBits
at com/ms/vm/loader/JarArchiveSet.getClassData
at com/ms/vm/loader/ResourceLoader.getClassData
at com/ms/vm/loader/URLClassLoader.findClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
thanks
| |
| Muaddib 2004-08-08, 12:15 pm |
| Mohnima,
> With the MSJVM on and the
> CLASSPATH correctly specified it still dosen't work.
> with the MSJVM the class cant be found at all, and even a simple java
> applet with no specification to VRML whatsoever doesn't work, i get this
> message "class applet .... not found"
Thank you for submitted your Java Console read out. It is
extrememly helpful to diagnose the problem, and without it, it is
somewhat akin to calling up a doctor's answering machine, saying "There
is something wrong with my leg, can you tell me what it is" and then
hanging up. Java Console is like an XRAY, next time send the complete
readout, there is no lack of space here. :)
That said, I find your readout extremely troubling. At the bottom
of the readout are references to MS Applet classes which is good, if
they were Sun classes, then it would mean that you hadn't disabled the
Sun plugin. However, at the top, there are references to other sun classes:
at sun/net/www/protocol/file/FileURLConnection.connect
This means that you must have majorly munged your classpath to somehow
point at Sun classes. When you speak of classpath, you are talking of
changing the registry setting at:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM]
Here are my contents
"Classpath"="c:\\progra~1\\blaxxu~1\\cc3deai.zip;C:\\windows\\java\\classes\\;."
"Classpath.CC3Dbackup"="c:\\progra~1\\bitman~1\\bscont~1\\cc3deai.zip;C:\\windows\\java\\classes\\;."
"TrustedClasspath"="c:\\progra~1\\blaxxu~1\\cc3dtrustlib.zip;."
"TrustedClasspath.CC3Dbackup"="c:\\progra~1\\bitman~1\\bscont~1\\cc3dtrustlib.zip;."
Or did you change the classes in c:\windows\java\classes?
There you should see all the MSJVM classes in com\ms\ subdirectory.
Either way, as far as the error you sent goes. The only way I could
replicate it was by actually removing the jar file from the directory of
the example I cooked up. Here is my working applet tag:
<applet archive="vrml.jar" code="CreateEx.class" mayscript height="100"
width="375">
Check to make sure your jar is actually in the path specified in the error.
I suggest first uninstalling the Sun JVM, then reinstalling the MSJVM.
There is a real problem if both ms and sun classes show up in the same
java log. Once your example applet works, try out the EAI example at:
http://tecfa.unige.ch/guides/vrml/e.../create-ex.html
Then you can put back Sun. It will become the default plugin, so you
will have to disable it again.
Good Luck!
Rob
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| mohmina 2004-08-08, 7:15 pm |
| Thanks ROB
first i've tried removing Sun JVM and reindtalling MSJVM and here's what i
get
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
Error loading class: MyEAIapplet
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: MyEAIapplet
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
then i went to C:\WINNT\Java\Classes where's my JVM and there's nothing
but a sertificate under Classes !!!!
and uder my HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM here's what i
found
Classpath="C:\ProgramFiles\CosmoSoftware\CosmoPlayer\npcosmop21.zip;
C:\Documents and Settings\AVCamp;"
LibsDirectory="C:\WINNT\java\lib" that even dosen't exist!!!
TrustedClasspath=""
TrustedLibsDirectory="C:\WINNT\java\trustlib"
but when it comes to the example with the blue sphere, it worked and so
did all the examples listed there!!
i even copied one of them "GetBrowser" whitch worked fin on line but
didn't after copying it!!
it's more and more complicated could you please try to figure out what's
wrong!!
MANY THANKS
| |
| Muaddib 2004-08-08, 7:15 pm |
| Mohmina,
> but when it comes to the example with the blue sphere, it worked and so
> did all the examples listed there!!
>
> i even copied one of them "GetBrowser" whitch worked fin on line but
> didn't after copying it!!
This means that that both your MS Java and EAI are now working. So
there will be no more alterations to your registry, and java
directories, other than the ones I suggest next, ok? :)
> then i went to C:\WINNT\Java\Classes where's my JVM and there's nothing
> but a sertificate under Classes !!!!
> and uder my HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM here's what i
> found
>
> Classpath="C:\ProgramFiles\CosmoSoftware\CosmoPlayer\npcosmop21.zip;
> C:\Documents and Settings\AVCamp;"
> LibsDirectory="C:\WINNT\java\lib" that even dosen't exist!!!
> TrustedClasspath=""
> TrustedLibsDirectory="C:\WINNT\java\trustlib"
This is odd, but if it works, then it works. I don't have access to
WinNT at the moment, but if you did a search for com/ms, you will find
the classes somewhere. What is this C:\Documents and Setting\AVCamp; ?
Is that your login name? If so, remove this part from you Classpath
settings, there really is no reason at all to change your registry
unless you are using multiple plugins. Then, I see from you java log
that you are using version 5.0.0.3805. Install version 3810 from
http://www.vrspace.org/downloads/msjavx86.exe
Do these two things incrementally and check to make sure that those EAI
examples still work, restart IE (closing ALL IE windows) each time.
> Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805
....
> Error loading class: MyEAIapplet
> java.lang.NoClassDefFoundError
> java.lang.ClassNotFoundException: MyEAIapplet
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/applet/AppletPanel.securedClassLoad
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.run
> at java/lang/Thread.run
Now this just means that you are improperly creating your applet
tag, has nothing to do with the EAI. I posted the correct way to load
an applet from a jar in the last message, here is the correct way when
it is just a class:
<applet code="CreateEx.class" mayscript height="100" width="375">
</applet>
Here I copied null.wrl, create-ex.wrl, and CreateEx.class from that link
I sent to a directory on my desktop and it works. Try it. The class in
this scenario is in the same directory as the the web page.
Post the applet tag you are using and the location of the referenced
class MyEAIapplet ( you should know its also case sensitive ).
Furthermore, did you place MyEAIapplet in a package, for example,
org.eaizilla.MyEAIapplet, or is it not declared as part of a package?
If it is, you have to use the fully qualified name in the applet tag,
and place it in appropriately name subdirectories.
Tell me how it goes...
Rob
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
|
| U know what?, i've installed MSJVM from the link u gave me and it's still
showing Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805, u may need to
have a look at it.
I've also looked for com\ms in all the computer without any success,!!!
am calling the applet from the same directory where the HTML file is, this
was perfectly working with SUN JVM, and the tag is set just like yours
simply cause the applet isn't mine it's from the examples at TECFA web
page.
and with CreateEX i still get the same problem, that could be related to
the fact the the Com\ms folder is non-existant!!!
Error loading class: CreateEx
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: CreateEx
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
Thanks for give all this time to my issue, i do appreciate it.
| |
| Muaddib 2004-08-08, 7:15 pm |
| > am calling the applet from the same directory where the HTML file is, this
> was perfectly working with SUN JVM, and the tag is set just like yours
> simply cause the applet isn't mine it's from the examples at TECFA web
> page.
> and with CreateEX i still get the same problem, that could be related to
> the fact the the Com\ms folder is non-existant!!!
> Error loading class: CreateEx
> java.lang.NoClassDefFoundError
> java.lang.ClassNotFoundException: CreateEx
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/applet/AppletPanel.securedClassLoad
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.run
> at java/lang/Thread.run
Very odd, indeed, applet programming for you. :) The only thing
else I can think of is maybe the winnt/3805 mix isn't able to handle
the spaces in the path of the directory you are starting from. Copy the
examples to c:\examples and try to run it from there.
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| mohmina 2004-08-08, 7:15 pm |
| I found a com/ms folder with all the classes zipped under
C:\WINNT\Java\Packages\KWXN13Z9.zip.
i unzipped every thing under classes and updated my classpath just as
yours yet it still not working.
I am completely clueless please HELP HELP HELP !!!
| |
| R. Russell Kinter 2004-08-08, 11:14 pm |
| "mohmina" <afmtsmn@private> wrote in message news:<5d7e868206c2a81a905702c1d7eac8d4@localhost.talkaboutprogramming.com>...
> Thanks ROB
>
> first i've tried removing Sun JVM and reindtalling MSJVM and here's what i
> get
>
You didn't have to remove Sun. Just use the check boxes under
Tools>Internet Options>Advanced and scroll a little.
> Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805
> ==============================================
> ? help
> c clear
> f run finalizers
> g garbage collect
> m memory usage
> q quit
> t thread list
> ==============================================
> Error loading class: MyEAIapplet
> java.lang.NoClassDefFoundError
> java.lang.ClassNotFoundException: MyEAIapplet
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/applet/AppletPanel.securedClassLoad
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.run
> at java/lang/Thread.run
>
> then i went to C:\WINNT\Java\Classes where's my JVM and there's nothing
> but a sertificate under Classes !!!!
That's because the MS JVM's classes are found in "packages" folder
> and uder my HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM here's what i
> found
>
> Classpath="C:\ProgramFiles\CosmoSoftware\CosmoPlayer\npcosmop21.zip;
> C:\Documents and Settings\AVCamp;"
> LibsDirectory="C:\WINNT\java\lib" that even dosen't exist!!!
> TrustedClasspath=""
> TrustedLibsDirectory="C:\WINNT\java\trustlib"
>
> but when it comes to the example with the blue sphere, it worked and so
> did all the examples listed there!!
>
Ok the fact that the example worked shows the problem is NOT your
computer! So I would leave it alone! The problem is in your applet!
More over the printout from your java console is further proof:
> Error loading class: MyEAIapplet
> java.lang.NoClassDefFoundError
> java.lang.ClassNotFoundException: MyEAIapplet
I suggest you re-check spelling for the class on the html
page the where the applet tags are or the code base location.
> i even copied one of them "GetBrowser" whitch worked fin on line but
> didn't after copying it!!
>
"GetBrowser" is not the issue imho.
> it's more and more complicated could you please try to figure out what's
> wrong!!
>
> MANY THANKS
When things like this appear to get complicated, sometimes it's a
good idea to step back and ask "Is it really this complicated, or am
I just perceiving it that way because I haven't looked closely enough
at my own work?"
Patience is needed working with Java especially EAI. Ham strung by the
JVM controversy or not, EAI is a true art.
thanx
Russ
| |
| Muaddib 2004-08-08, 11:14 pm |
| Mohmina
> I found a com/ms folder with all the classes zipped under
> C:\WINNT\Java\Packages\KWXN13Z9.zip.
>
> i unzipped every thing under classes and updated my classpath just as
> yours yet it still not working.
Yes, in retrospect, I think I was wrong about those classes being
unzipped under java\classes directory. I believe I unzipped them many,
many moons ago when I was going through what you are now :). It won't
hurt to have them unzipped.
>
> I am completely clueless please HELP HELP HELP !!!
>
So running from a directory with out spaces didn't help, eh? It
seems that this foe is beyond me, so its hack time. What worked?
Running the example through the web, what didn't? running it through the
local file system... so this has to work. Go to
http://www.opensa.org/download/
, get and install this web browser. It is a nice, pre-built Apache web
server distribution which works out of the box. Drop the files for the
example we have been working with into C:\OpenSA\Apache\htdocs\ and
access it by typing
http://localhost/create-ex.htm
into IE.
This way, you can work through your web browser, which is probably
what you would be doing in the future any way. :)
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| Joerg Scheurich aka MUFTI 2004-08-10, 11:20 pm |
| > We have step-by-step instructions at VRSpace:
> And, yes, the EAI certainly does work with Contact, Cortona, and Cosmo
Message from cosmoplayer/netscape in the java console:
| Netscape Communications Corporation -- Java 1.1.5
| Type '?' for options.
| JIT compiler installed.
| java.lang.ClassNotFoundException: vrml/external/Browser
| WARNING - remember netscape.security commented out - look for JAS in code
|
| WARNING - netscape security commented out
|
| EAI: opened port, ready for data
| [2004/08/04 15:57:21.151] INFO AppletEventDispatcher : LogDebug = false
All i get is a object with the text "loading", which vanishs, if you
click to it.
Any comments ?
so long
MUFTI
--
.... bearbeiten sie die Mehrkanallinien von Kommunikationen, auf,
welchem Sie registriert werden
aus einer Werbemail, Stichwort: rfc 2387 ?
| |
| Muaddib 2004-08-12, 7:17 am |
| Heya MUFTI,
What Russ says is true. We only work with IE, BS and BM Contact.
But I interpreted you to be saying that your Netscape & Cosmo combo are
not working with the EAI in general, because you shouldn't get this
error trying to load up any EAI app. Assuming that, here is a full
explanation of what is most likely occurring:
As you probably know, there are two reasons to get the:
java.lang.ClassNotFoundException: vrml/external/Browser error
A) You have Sun Java enabled.
B) You have a classpath problem.
A is easy to detect. If the java console says the word sun anywhere
then you know this is the case. For example,
java.lang.NoClassDefFoundError: vrml/external/field/EventOutObserver
<snip>
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
...
Your situation is clearly not A, since you are using Netscape's Java.
Yes, there are really three javas! Sun, IE, and Netscape ( and even more
after that :) ). In the Netscape 4.* situation, here is the setup:
Let's synchronize directories, this is where my Netscape 4.8 is installed:
C:\Netscape\Communicator\Program
The plugins are stored in C:\Netscape\Communicator\Program\Plugins
As you probably know, when you want to switch plugins ( for example, I
have Contact and Cosmo installed for netscape ) you change the names of
dll for the plugin you don't want to use. To not use Contact, change
the names to:
_npbxpro.dll
_npbx3dpro.dll
_npbx3d.dll
Leaving cosmo to run with
npcosmop211.dll
You are using the EAI, so the question is where are those java classes
being loaded from. When you have error B) either 1) your system is
completely messed up ( must have been changing things under the hood )
so just reinstall, or 2) you have two or more plugins installed, and
Netscape is trying to load up the classes for the wrong plugin.
How does it know which plugin's EAI classes to load up? With Netscape
there are two steps. First, all of the jars and classes in
C:\Netscape\Communicator\Program\java\classes
are loaded up ( this is the core directory ).
Second, this isn't entirely correct, but the plugin that is currently
working, i.e. cosmo, will look for its classes in the plugins directory:
C:\Netscape\Communicator\Program\Plugins\npcosmop211.jar.
When I finally got the time to check out your question, I wiped the dust
off my Netscape 4.8 installation, and opened an EAI example. I noticed
I was running Contact, so I underscored its dlls in the Plugins
directory, restarted, and found that I was running Cosmo. Then I
noticed the deadly NoClassDefFoundError. How is that possible, I
thought? How can the Contact classes be loading, instead of Cosmos, when
I don't even see a jar for them in the Plugins directory? I googled it,
and found out that Contact doesn't play by the rules, and actually
places its classes in
C:\Netscape\Communicator\Program\java\classes\vrml\...
which is a severe nono, since it means that their classes are always
loaded first ( C:\Netscape\Communicator\Program\java is the core classes
directory ). I change the directory name to
C:\Netscape\Communicator\Program\java\classes\_vrml\...
and it worked.
Bottom line is this, if you have Contact installed, make sure that you
change the name of that directory when using other plugins. Bottomer
bottom line, make sure that all jars and classes for the other plugins
are somehow renamed before trying to run EAI for a plugin. If you still
are having problems, reinstall Cosmo.
Good Luck!
Rob
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| Joerg Scheurich aka MUFTI 2004-08-12, 7:17 am |
| > In the Netscape 4.* situation, here is the setup:
> Let's synchronize directories, this is where my Netscape 4.8 is installed:
> C:\Netscape\Communicator\Program
Oops, i forgot to say, that is was using netscape and cosmoplayer
running under IRIX64 - SGI UNIX 8-(
> The plugins are stored in C:\Netscape\Communicator\Program\Plugins
$ ls /var/netscape/communicator/plugins32
....
libcosmoplayer.so
....
npfreewrl.so
So i have a plugin for a anicent version of FreeWRL for IRIX too.
Maybe this is the reason for the failure...
> Second, this isn't entirely correct, but the plugin that is currently
> working, i.e. cosmo, will look for its classes in the plugins directory:
> C:\Netscape\Communicator\Program\Plugins\npcosmop211.jar.
It looks like, the IRIX64 version is very different in this point:
$ ls /var/netscape/communicator/java/classes
....
npcosmop.jar
Sorry for causing confusion 8-(
so long
MUFTI
--
Muschelfluchtabfolge
(Stichwort: Shell escape)
| |
| Muaddib 2004-08-13, 12:40 pm |
| > would u tell me please if there are any VRML plugings out there working
> with MSJVM ?as this seem to be the only solution for me.
Contact, Cortona, and Cosmo.
mohmina wrote:
> Hi guys
>
> I still got the same problem, but it's no longer an EAI issue.
If you don't think its an EAI issue ( which it isn't ) why are you
thinking of switching plugins above?
> i don't know if you guys add something after installing MSJVM for win2k or
> does it work instantly without any additional configuration, cause mine
> doesn't!!
Nothing. The grand majority of people just have to disable the sun
plugin through the Tools->Advanced Options of IE, and viola!!
> The same applet is viewed prfectly through SUN's appletviewer and
can't be
> loaded through my browser using MSJVM.
> ROB, i tryed calling my files through Apache and even created the war file
> with no diference. the applet simply can't be loaded.
>
So what you are saying is that if you go to
http://tecfa.unige.ch/guides/vrml/e.../create-ex.html
it works, but if you go to
http://localhost/create-ex.html
it doesn't.
This is pretty bizarre. As far as your browser is concerned, there is
no difference between a remote web server, and a local web server, so I
can't even imagine how you could end up with two seperate results.
Are you recompiling the classes yourself? You realize that if you are
compiling classes to be used with the MSJVM which only knows Java 1.1,
that you need to use the -target command line option:
javac -target 1.1
though I wouldn't do any compilation till yourself you have classes
compiled by others working first (such as the above example).
Otherwise, you are just adding more unknowns to the mix, which is bad.
Thanks to Russ, I know a correct url for 3810 now:
http://download.windowsupdate.com/m...2a04af2b34d.exe
You can try that as well.
Rob
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| Muaddib 2004-08-14, 11:16 pm |
| Mohmina
> I found a com/ms folder with all the classes zipped under
> C:\WINNT\Java\Packages\KWXN13Z9.zip.
>
> i unzipped every thing under classes and updated my classpath just as
> yours yet it still not working.
Yes, in retrospect, I think I was wrong about those classes being
unzipped under java\classes directory. I believe I unzipped them many,
many moons ago when I was going through what you are now :). It won't
hurt to have them unzipped.
>
> I am completely clueless please HELP HELP HELP !!!
>
So running from a directory with out spaces didn't help, eh? It
seems that this foe is beyond me, so its hack time. What worked?
Running the example through the web, what didn't? running it through the
local file system... so this has to work. Go to
http://www.opensa.org/download/
, get and install this web browser. It is a nice, pre-built Apache web
server distribution which works out of the box. Drop the files for the
example we have been working with into C:\OpenSA\Apache\htdocs\ and
access it by typing
http://localhost/create-ex.htm
into IE.
This way, you can work through your web browser, which is probably
what you would be doing in the future any way. :)
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
| |
| mohmina 2004-08-18, 7:15 am |
| Hi guys
I still got the same problem, but it's no longer an EAI issue.
The same applet is viewed prfectly through SUN's appletviewer and can't be
loaded through my browser using MSJVM.
i don't know if you guys add something after installing MSJVM for win2k or
does it work instantly without any additional configuration, cause mine
doesn't!!
ROB, i tryed calling my files through Apache and even created the war file
with no diference. the applet simply can't be loaded.
would u tell me please if there are any VRML plugings out there working
with MSJVM ?as this seem to be the only solution for me.
| |
| Muaddib 2004-08-18, 12:16 pm |
| > would u tell me please if there are any VRML plugings out there working
> with MSJVM ?as this seem to be the only solution for me.
Contact, Cortona, and Cosmo.
mohmina wrote:
> Hi guys
>
> I still got the same problem, but it's no longer an EAI issue.
If you don't think its an EAI issue ( which it isn't ) why are you
thinking of switching plugins above?
> i don't know if you guys add something after installing MSJVM for win2k or
> does it work instantly without any additional configuration, cause mine
> doesn't!!
Nothing. The grand majority of people just have to disable the sun
plugin through the Tools->Advanced Options of IE, and viola!!
> The same applet is viewed prfectly through SUN's appletviewer and
can't be
> loaded through my browser using MSJVM.
> ROB, i tryed calling my files through Apache and even created the war file
> with no diference. the applet simply can't be loaded.
>
So what you are saying is that if you go to
http://tecfa.unige.ch/guides/vrml/e.../create-ex.html
it works, but if you go to
http://localhost/create-ex.html
it doesn't.
This is pretty bizarre. As far as your browser is concerned, there is
no difference between a remote web server, and a local web server, so I
can't even imagine how you could end up with two seperate results.
Are you recompiling the classes yourself? You realize that if you are
compiling classes to be used with the MSJVM which only knows Java 1.1,
that you need to use the -target command line option:
javac -target 1.1
though I wouldn't do any compilation till yourself you have classes
compiled by others working first (such as the above example).
Otherwise, you are just adding more unknowns to the mix, which is bad.
Thanks to Russ, I know a correct url for 3810 now:
http://download.windowsupdate.com/m...2a04af2b34d.exe
You can try that as well.
Rob
--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|