hi all.
i'm trying to compile a source package, which is needed for my
graduation design. here is its
url:http://gist.cs.berkeley.edu/libgist-2.0/libgist-2.0.tar.gz,
now, i've almost reached the last step: make amdb with the utility
java. when i tried to run amdb.bat including the java command, the
intepreter gave me the following message:
D:\SpatialDatabase\GiST\tools\libgist\bin>java -classpath
"D:\SpatialDatabase\Gi
ST\tools\libgist_\libgist\src\gui;D:\SpatialDatabase\GiST\tools\libgist_\libgist
\src\analysis;D:\SpatialDatabase\GiST\tools\libgist_\libgist\src\amdbgist;D:\Spa
tialDatabase\GiST\tools\libgist_\libgist\src\treeview;D:\jdk1.1.8\lib\classes.zi
p;D:\Swing-1.1.1\swingall.jar" MainWindow
java.lang.NoClassDefFoundError: MainWindow$1
at MainWindow.<init>(MainWindow.java:47)
at MainWindow.main(Compiled Code)
here MainWindow$1.class was created at the same time of MainWindow.
i don't know what does this error mean. actually, i know little about
java.
any help would be most appreciated.
jing.
> when i tried to run amdb.bat including the java command, the
> intepreter gave me the following message:
[quoted text clipped - 12 lines]
> i don't know what does this error mean. actually, i know little about
> java.
It means that java tried to get a file "Main$1.class", but didn't find it.
From the error message you also see, that the error occured inside a method
of the MainWindow class. You therefore know, that java *did* find a file
"MainWindow.class", although you don't actually know where.
May be in your "-classpath ..." the directory containing "Main.class" *and*
"Main$1.class" is missing. May also be you copied your file
"MainWindow.class" from one directory into another, but forgot to copy file
"MainWindow$1.class".

Signature
"Thomas:Fritsch$ops.de".replace(':', '.').replace('$', '@')
Thomas Fritsch - 05 Apr 2006 16:46 GMT
[...]
>> java.lang.NoClassDefFoundError: MainWindow$1
>> at MainWindow.<init>(MainWindow.java:47)
>> at MainWindow.main(Compiled Code)
[...]
Arrgh, I meant "MainWindow", not "Main". Sorry for the confusion.
> It means that java tried to get a file "Main$1.class", but didn't find it.
... tried to get a file "MainWindow$1.class", but didn't find it.
> From the error message you also see, that the error occured inside a
> method of the MainWindow class. You therefore know, that java *did* find a
> file "MainWindow.class", although you don't actually know where.
>
> May be in your "-classpath ..." the directory containing "Main.class"
... the directory containing "MainWindow.class"
> *and* "Main$1.class" is missing. May also be you copied your file
*and* "MainWindow$1.class" is missing.
> "MainWindow.class" from one directory into another, but forgot to copy
> file "MainWindow$1.class".

Signature
"Thomas:Fritsch$ops.de".replace(':', '.').replace('$', '@')
pansy4u - 08 Apr 2006 04:21 GMT
Yes, you are right, Thomas. I did copied "MainWindow.class" from one
directory into another, but forgot to copy "Mainwindow$1.class"
together. But even if i copied them all to the target directory, the
*same* error occured again!
I'll check the whole compling procedure.
Thank you, Thomas!
jing.