I had similar problem before.  What you need to do is to put
several jar files in c:\jdk1.3\jre\lib\exe\ to your classpath.  with
this addition,

appletviewer HelloUniverse.html and
java HelloUniverse

should be fine.

My problem is that if I open HelloUniverse.html from a browser, it says
"Applet HelloUniverse exception: java.lan.NullPointerException".  Does
anyone know what I am missing?

Thanks,

Karen Lu

Asish Law wrote:
>
> I downloaded Java 2 version 1.3 and Java 3D version 1.2
>
> After installing both the above, I tried compiling and running a
> demo program under C:\jdk1.3\demo\java3d\HelloUniverse.
>
> When I use "appletviewer HelloUniverse.html", the class runs fine.
> But when I run it from the command line (java HelloUniverse), it gives
> me an error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/media/j3d/SceneGraphObject
>
> I am getting similar errors with any other demo I am trying to run,
> the same classes run just fine via appletviewer.
>
> Any help will be greatly appreciated. Thanks.
>
> BTW, I did not see these errors when I was running jdk1.2.2. I am
> running
> Windows 98.
>
> ===========================================================================
> 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".

--
_______________________________________________________________
Hong-Qian (Karen) Lu, Ph.D.
Schlumberger Austin Technology Center   email: [EMAIL PROTECTED]
8311 North FM 620 Road                  voice: (512) 331 3350
Austin, TX 78726                        fax:   (512) 331 3075

===========================================================================
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