> >
> > Exception in thread "main" java.lang.NoClassDefFound
> > Error:HelloUniverse
>
> The classpath must always point to the directory to fetch classes
from.
> In this case "." would need to be added to your classpath or the
actual
> directory name "c:\jdk1.2\demo\HelloUniverse". Probably the former is
> better if you are going to be swapping dirs look and running all the
> different examples.
>

Except that installation instructions for Win NT say that if you didn't
have any JDK installed before, you shouldn't have to set the classpath
at
all.
This however, isn't clear if you do not install in default directory as
Sun assumes you will - not in my case. There is no info about this in
the
troubleshooting section either.
On a Solaris box you do need to set the classpath of course...
I have a slightly different problem for which I haven't found an answer
as
yet, so if anyone can help...
I installed JDK in:  k:\jdk1.2
Now, since I didn't set classpath, at this stage I have to run things
with
-classpath (or -cp) option, e.g : cd  k:\jdk1.2\demo\jfc\simple, then
java
-cp . SimpleExample.

So, this works for jfc examples. etc.

Now, if I try to run java3d app: e.g. in:
k:\jdk1.2\demo\java3d\HelloUniverse,
java -cp . HelloUniverse , I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/media/j3d/SceneGrpahObject

I get similar errors (referring to javax) trying to run other apps.

Now, I have no problems running these as applets with appletviewer (no
classpath needed), so I assume that it isn't a driver problem (OpenGL,
etc.)

There is a ref. in Registry to CLASSPATH though, pointing to
->F:\Winnt\Java\classes
I thought that this was related to IE and its Java support...
Is this the problem ?

I am using a PPro200 64M Ram, WinNT 4 Sp3 (on dual boot system), Matrox
Millenium
JDK 1.2, latest Java 3D (1.1.1)
Nik.




=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to