[antlr-interest] catch Exception in thread "main" when buildimg C++ runtime lib

Andreas B. Thun abt at gmx.de
Thu Jul 17 07:15:07 PDT 2003


Hi!

Can anyone help? I am using Linux SuSE 8.2 with
Java version 1.4.1_02.
When making antlr, the makefile stops :-(

TIA,
Andi

CLASSPATH is ok:
cm/antlr-2.7.2> ll $CLASSPATH
-rwxr-----    1 abt      users      358273 2003-01-20 01:47
/home/abt/cm/c++/antlr-2.7.2/antlr.jar

cm/antlr-2.7.2> ./configure --prefix=/usr/local
checking if examples must be built... no
checking if BOOTSTRAP_JAR is set... /antlrall.jar
checking for ar... /usr/bin/ar
checking for as... /usr/bin/as
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for doxygen... /usr/bin/doxygen
checking for a BSD compatible install... /usr/bin/install -c
You have CLASSPATH /home/abt/cm/c++/antlr-2.7.2/antlr.jar:., hope it
is correct
checking for javac... javac
checking if javac works... yes
checking for java... java
checking for uudecode... yes
checking if uudecode can decode base 64 file... yes
checking if java works... yes
checking for jar... jar
checking for ld... /usr/bin/ld
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking for makedepend... /usr/bin/X11/makedepend
checking for mkdir... /bin/mkdir
checking for nm... /usr/bin/nm
checking for ranlib... ranlib
checking for rm... /bin/rm
checking for strip... /usr/bin/strip
checking for gtar... no
checking for tar... /bin/tar
checking for tclsh... /usr/bin/tclsh
checking for touch... /usr/bin/touch
checking for ANSI C header files... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for strcasecmp... yes
configure: creating ./config.status
config.status: creating scripts/Config.make
config.status: creating scripts/antlr-config
config.status: creating scripts/run-antlr

cm/antlr-2.7.2> make
=============================
Making dependencies...
=============================
make[1]: Entering directory `/home/abt/cm/antlr-2.7.2/antlr'
make[2]: Entering directory `/home/abt/cm/antlr-2.
7.2/antlr/preprocessor'
make[2]: Leaving directory `/home/abt/cm/antlr-2.7
.2/antlr/preprocessor'
make[2]: Entering directory `/home/abt/cm/antlr-2.7.2/antlr/actions'
make[3]: Entering directory `/home/abt/cm/antlr-2.
7.2/antlr/actions/java'
make[3]: Leaving directory `/home/abt/cm/antlr-2.7
.2/antlr/actions/java'
make[3]: Entering directory `/home/abt/cm/antlr-2.
7.2/antlr/actions/cpp'
make[3]: Leaving directory `/home/abt/cm/antlr-2.7
.2/antlr/actions/cpp'
make[2]: Leaving directory `/home/abt/cm/antlr-2.7.2/antlr/actions'
make[2]: Entering directory `/home/abt/cm/antlr-2.
7.2/antlr/collections'
make[3]: Entering directory
`/home/abt/cm/antlr-2.7.2/antlr/collections/impl'
make[3]: Leaving directory
`/home/abt/cm/antlr-2.7.2/antlr/collections/impl'
make[2]: Leaving directory `/home/abt/cm/antlr-2.7
.2/antlr/collections'
make[2]: Entering directory `/home/abt/cm/antlr-2.7.2/antlr/debug'
make[3]: Entering directory `/home/abt/cm/antlr-2.
7.2/antlr/debug/misc'
make[3]: Leaving directory `/home/abt/cm/antlr-2.7.2/antlr/debug/misc'
make[2]: Leaving directory `/home/abt/cm/antlr-2.7.2/antlr/debug'
make[1]: Leaving directory `/home/abt/cm/antlr-2.7.2/antlr'
make[1]: Entering directory `/home/abt/cm/antlr-2.7.2/lib'
make[2]: Entering directory `/home/abt/cm/antlr-2.7.2/lib/cpp'
make[3]: Entering directory `/home/abt/cm/antlr-2.7.2/lib/cpp/src'
make[3]: Leaving directory `/home/abt/cm/antlr-2.7.2/lib/cpp/src'
make[3]: Entering directory `/home/abt/cm/antlr-2.7.2/lib/cpp/antlr'
make[3]: Leaving directory `/home/abt/cm/antlr-2.7.2/lib/cpp/antlr'
make[2]: Leaving directory `/home/abt/cm/antlr-2.7.2/lib/cpp'
make[1]: Leaving directory `/home/abt/cm/antlr-2.7.2/lib'
=============================
Making antlr ...
=============================
make[1]: Entering directory `/home/abt/cm/antlr-2.7.2/antlr'
java -cp /home/abt/cm/antlr-2.7.2/antlrall.jar antlr.Tool   antlr.g
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/Tool
make[1]: *** [.antlr.g] Error 1
make[1]: Leaving directory `/home/abt/cm/antlr-2.7.2/antlr'
make: *** [subdirs] Error 2
cm/antlr-2.7.2>


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list