RE(3): NoClassDefFoundError (no good news)

Hello again Mathias,

I think I mentioned before that I am not familiar with java.  However I feel
the main problems are really with path and classpath definitions and version
numbering that is not intuitively obvious.
I am wondering whether I need to separately point my path to each of the
Java2d AND Java3d jar files or directories?  Or which, if only one.

I am still not able to get anything to run except for running "java
visad.ss.SpreadSheet" (works from any directory, better with "-mx256m
-no3d").
Incidentally, I noticed that the "HelloUniverse" example _does_ also come
with visad [though I forwarded you the one I downloaded from Sun, if there's
any difference.]

Speaking of downloads from Sun, the program "appletviewer" wasn't included
in any of the three java versions I downloaded:
j2re-1_3_0_02-win.exe
java3d1_1_2-win32-opengl-sdk.exe
java3d-1_2_1_01-win32-opengl-rt.exe.  [I downloaded
java3d-1_2_1_01-win32-opengl-sdk.exe just now, but it's not there either.] 
However I did discover it poked in an old directory (must have been saved by
a former employee here?), however I couldn't get anything to run with it.
----------------------------------------------------------------------------
----
C:\APPS\david\visad\visad\examples>dir SimpleI*.*
 Volume in drive C has no label.
 Volume Serial Number is F873-BA67

 Directory of C:\APPS\david\visad\visad\examples

27/04/01  08:19a                   510 SimpleImage$1.class
27/04/01  08:19a                 3,345 SimpleImage.class
               2 File(s)          3,855 bytes
                          9,647,747,072 bytes free

C:\APPS\david\visad\visad\examples>appletviewer SimpleImage
I/O exception while reading: \C:\APPS\david\visad\visad\examples\SimpleImage
Make sure that SimpleImage is a file and is readable.

C:\APPS\david\visad\visad\examples>appletviewer -J SimpleImage
Can't find class

C:\APPS\david\visad\visad\examples>
----------------------------------------------------------------------------
----
(Note that I _think_ the "-J" option is supposed to be flagged.)

I tried running the HelloUniverse application that apparently came with
visad, with no success:
----------------------------------------------------------------------------
----
C:\APPS\david\visad\visad\HelloUniverse>java HelloUniverse
.
.
.
extensionStr == null
wglCreateContext Failed: The operation completed successfully.

extensionStr == null

C:\APPS\david\visad\visad\HelloUniverse>
----------------------------------------------------------------------------
----
As I told you before, it opens a blank window, with HelloUniverse as it's
title, and the above error(?) messages scroll in the background.  These are
the same ones I've seen in the background when running visad (except that in
that case they don't scroll continuously, but appear in response to
commands), so I'm wondering whether it is a problem with java 3d not
running.
I'm also confused as to why the java version

Alternatively, trying to run HelloUniverse with appletviewer:
----------------------------------------------------------------------------
----
C:\APPS\david\visad\visad\HelloUniverse>appletviewer HelloUniverse.html
java.lang.NoClassDefFoundError: java/security/PrivilegedAction
        at
        at HelloUniverse.<init>(HelloUniverse.java:83)
        at com.bentley.execenv.applet.AppletPanel.createApplet(Compiled
Code)
        at com.bentley.execenv.applet.AppletPanel.runLoader(Compiled Code)
        at com.bentley.execenv.applet.AppletPanel.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:466)
----------------------------------------------------------------------------
----
This did bring up an applet window titled "Applet Viewer:
HelloUniverse.class", and with a menu, however the content of the window was
blank except for an error message: "Start: applet not initialised".


Finally, I tried getting visad using the second alternative, which is to
nmake the java files stored in visad_src-2.0.jar.  I thought this might help
some examples to run, but apparently not -  I got the following errors:
----------------------------------------------------------------------------
----
C:\jdk1.2.1\visad>nmake -f MakeFile.WinNT compile
.
.
.
.
tor.
          sub_types.add( fieldRange );
                       ^
FieldImpl.java:1045: Method add(visad.Data) not found in class
java.util.Vector.

            v_array[kk].add( field.getSample(kk) );
                           ^
FieldImpl.java:1052: Method add(visad.MathType) not found in class
java.util.Vec
tor.
            sub_types.add( fieldRange );
                         ^
FieldImpl.java:1055: Method add(visad.Data) not found in class
java.util.Vector.

              v_array[kk].add( field.getSample(kk) );
                             ^
FieldImpl.java:1063: Method add(visad.MathType) not found in class
java.util.Vec
tor.
              sub_types.add( ((RealTupleType)fieldRange).getComponent(jj) );
                           ^
Too many errors.  (The limit on reported errors is 100.)
111 errors
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'
Stop.

C:\jdk1.2.1\visad>
----------------------------------------------------------------------------
----

However most of the class files appeared to be made.

By the way, I didn't follow exactly what you meant about "extending an
applet".

I am hoping that if you (Mathias) don't have any more ideas about what's
wrong, that someone else will.

Thanks,
David.

P.S. Oh, and by the way, I can't get HelloUniverse to run in Internet
Explorer (V5.00.2314.1003CO) either [error is "can't be instantiated],
though it doesn't surprise me, as I don't think the plug-in is installed. 

P.P.S. Is another possibility security controls (firewall/antivirus/etc.)
stopping stuff?

P.P.P.S. I hope you can follow the formatting, but it was getting confusing
for me, with the pasted sections.


-----Original Message-----
From: Mathias Stümpert [ mailto:atzes@xxxxxx <mailto:atzes@xxxxxx> ]
Sent: Saturday, 9 June 2001 1:17 AM
To: Verrelli, David
Subject: Re: RE(2): NoClassDefFoundError (good news)


Hi David,

Thanks for sending me the demo-files. Actually I had not the time to look
into all of them. But I took a look at the HelloUniverse and had no problems
to run it. I don't know how familiar you are with Java so please forgive me
if I tell you things that are quite clear to you.
A problem you could have is that the HelloUniverse is not an executable
program. It's an applet what means that it is not a standalone application.
You need to open the .html with a java-capable browser to view the applet.
Nevertheless I was not able to open the applet with my browser (IE 5.5). But
there is another tool that comes with the jdk called appletviewer. So change
your working directory to the directory were your HelloUniverse stuff is
located and type in the following:

appletviewer HelloUniverse.html

That should open a small window and after a little while of loading a
rotating cube in it. You can identify an applet by the >extends applet<
phrase after the class definition.
I took also I look at the code as you wished me to. Though I'm not very
familiar with Java3D (I only use VisAD and never used Java3D directly) I can
tell you that the import-statements are correct and should not make any
trouble if your paths are all set correctly.
But I agree with you that it is not that easy to run the java-version of the
HelloWorld/Universe stuff. You need at least basic knowledge of the
java-logic to run these example programs and it always ties my brain in
knots when I have to set the classpath on a new installed computer. The best
thing you could do is trial and error ;-)

Cheers, Mathias



"The information contained in this email and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in error please 
promptly notify the sender by reply email and then delete the email and destroy 
any printed copy. Additionally, if you have received this email in error, you 
must not disclose or use this information in any way."  More Information on 
Egis can be obtained at www.egisconsult.com.au

Egis Consulting Australia, Melbourne
Phone 61 3 9272 6666
Fax 61 3 9272 6611
http://www.egisconsult.com.au


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: