NoClassDefFoundError is given when it can't find the ".class" file.

If PickTest.class is in your current directory and :

java PickTest

gives you the error, then your CLASSPATH
is not set to search the current directory.

On both Windows and Linux you have to set the
CLASSPATH to execute programs from the
current / working directory to be targeted as
something to load and run.

On my Windows partition I have this
command in the autoexec.bat on win-9x:

CLASSPATH=.;C:\Java\sdkSymantec\BIN\COMPONENTS\SYMBEANS.JAR;C:\Java\sdkSymantec\BIN\COMPONENTS\DATABIND.JAR;C:\Java\sdkSymantec\JAVA\LIB\CLASSES.ZIP;C:\Java\sdkSymantec\JAVA\LIB;C:\Java\sdkSymantec\BIN\COMPONENTS\DBAW_AWT.JAR;C:\Java\sdkSymantec\BIN\COMPONENTS\SFC.JAR;C:\Java\sdkSymantec\JAVA\LIB\DBAW.ZIP;C:\Java\sdkSymantec\JFC\Swingall.jar;%CLASSPATH%;%QTJava%;

SET
CLASSPATH=C:\JAVA\VMBIN\JMF20\LIB\SOUND.JAR;C:\JAVA\VMBIN\JMF20\LIB\JMF.JAR;%JMFSERVER%;%QTJAVA%;.;%CLASSPATH%

that has links for using Sun's Java Media Framework ( JMF )
this might be enough for simpler situations:

SET CLASSPATH=.;%CLASSPATH%

"." means the current ( or local ) directory.

From DOS I think you can type

ECHO $CLASSPATH
or
ECHO CLASSPATH

and it will tell you the current setting
of your CLASSPATH

For windows you would have to reboot
to have it take effect.

I'm using Linux ( Redhat 7.2 ) now,
and the settings of the path is different
but I think that's what you need for windows.

People are still using Windows ?

The Unixes ( including Linux ) are by and for
developers, and Java3d runs there too.     ;^)

hterrolle wrote:
|
| Hi,
|
| I remove few things from C://Windows
|        fffb401d_{0BD71875-03AC-4B53-AF96-44B14ADEC3A5}.tmp
|
| Before i use "c:\\xxxxx java myApp" to execute my application
| but now nothing work anymore execp appletviewer.
|
| When i run "java myApp" i got
|
| C:\JBuilder6\jbproject\Ctools\classes> java  -Xms8m -Xmx256m -Xss1m
-Xincgc -Xfut
ure -Xrs PickTest
|
| Exception in thread "main" java.lang.NoClassDefFoundError: PickTest
|
| Thanks for Help I am lost
|
http://archives.java.sun.com/cgi-bin/wa?A2=ind0304&L=java3d-interest&P=21128

hterrolle wrote:
|
| Hi Again,
|
| After spending The all Day i find out that things have change on my
machine.
|
|    To start my application (Applet) i use to "java MyApp"
|  and now i need to "java -cp .;MyApp"
|
|    And the problem i not comming from CLASSPATH
|
|  I do know why this append
|
http://archives.java.sun.com/cgi-bin/wa?A2=ind0304&L=java3d-interest&P=21313

Another Picking Example shows the SceneGraph
and loads a VRML file ( source code available ):

|
|  A new book features a demonstraion of the
| interactive "picking" of objects in a 3d Scene
| created from a VRML data file, and all the
| source code and data files are ___ free ___
| and are freely available.
|
| The VRML file is read and rendered, and with
| your mouse you can "pick" objects in the scene
| and it has an interactive representation of the
| Java3d Scenegraph that allows you to expand and
| collapse branches of the Scenegraph and examine
| the contents of the nodes of the scenegraph tree.
|
|  It uses the popular, portable Sun VRML Loaders.
|
| | Picking of VRML objects with your mouse is
| | demonstrated in a new book,
| | _ Java _ 3D _ Programming _,  by Daniel Selman ...
| |
| | The source code is avaible for free. [ links below ]
| http://www.frontiernet.net/~imaging/games_with_java3d.html
| http://www.frontiernet.net/~imaging/sourcecode/VrmlPickingTest.java
| http://www.frontiernet.net/~imaging/sc_vrml_picking_with_java3d.jpg
| http://www.manning.com/selman/selman_source.zip
|

http://archives.java.sun.com/cgi-bin/wa?A2=ind0203&L=java3d-interest&P=R3702

A screen capture of this was recently posted to this list
showing Selman's Picking from a Vrml Scene by some
kind sole just a week ago ( Saturday April 5, 2002 )
because lots of people seem to be interested in Picking objects
and Loading VRML scenes which the Sun VRML Loaders
do well as you can see:

http://archives.java.sun.com/cgi-bin/wa?A3=ind0304&L=java3d-interest&P=738227&E=2&B=--------------020805030705040909050407&N=sc_vrml_picking_with_java3d.jpg&T=image/jpeg
http://archives.java.sun.com/cgi-bin/wa?A2=ind0304&L=java3d-interest&P=R15666
http://www.frontiernet.net/~imaging/games_with_java3d.html

Fausto Mancini wrote:
|
| Hi all,
|
| I've loaded a _ VRML _ file using VRML97 loader
| -----------------------------------------------
|
| [ using the Sun VRML Loaders: ] (vrml97.jar).
|
| Now I want to be able to set the capability bit
| to pick objects in the VRML  scene I've just loaded.
|
| I want to set this bit for every Shape3D...
|
| How is it possible?
|
| Thank you very much for any help!
|
| Fausto Mancini
|
http://archives.java.sun.com/cgi-bin/wa?A2=ind0301&L=java3d-interest&P=R35974

Yes Fausto, see the above links !


Fausto Mancini wrote: | | Paul! | | Spamming here too!?! | | This is an interest group: you have to subscribe to access it. | | I think everyone here knows what Java3D is... | | So we don't need your ads and slogans: | | > "VRML is the a 3d geometry and animation file | > format language and Sun developed and donated | > to our community the Sun VRML Loaders which | > allow our community of Java3d developers to work | > with the larger community of artists and animators | > that also use VRML for web animation and scientific | > applications. | [CUT]" | | We also don't need your boring screenshots. | I personally don't want to download 50kb every | time to see those images... | | If you can't limit yourself from spamming, | I ask you not to attach your images at least... | The links are enough... | | Thank. | http://archives.java.sun.com/cgi-bin/wa?A2=ind0304&L=java3d-interest

Newbies like you Fausto and hterrolle keep asking
the same questions ( eg. Picking, as you both did  )
and as I have had it working I showed both to
answer the current questions, and to preemptively answer
future concerns, and have it in the archives for future
referance.

People on the Java3d list don't necessarily know about VRML.

 The Spaming complaint seams so "Couch-Beitler Flame War",
the Picking with Java3d using VRML is not off-topic for Java3d
and has been in responce to either questions or new events.

One reason I've posted more screen shots recently was
because of the recent lies from Yumtech.com by
Justin Couch in his unethical and illegal false
and fraudulent claims in continuation of the
"Couch-Beitler Flame War".

The fraudsters at Yumtech.com have suggested
falsely and fraudulently and without cause or reason
that I have "faked" screen shots on my web site
and the lies and criminal conduct of the
fraudsters at Yumtech.com, Prentice-Hall, and
the NIST hurt our community and country,
you, me, and the other people on this list.

One reason I've posted the images to
this list is to document and defend the truth
which includes the fact that the Sun VRML
Loaders can and do animate Web3d.org's
VRML based H-Anim Avatars despite
the lies, fraud, and criminal conduct
of Justin Couch, Aaron Walsh, Sandy Ressler
of the NIST and Prentice-Hall Publishing.

-- Paul, Java Developer & Web Animator
-------------------------------------------------
Imaging the Imagined: Modeling with Math & a Keyboard

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