getting started with compiling java - please help
Hi debian-users,
For the time being I would like to compile some kind of HelloWorld
application, be it with gcj, jikes or kjc. All of the three give me
error messages, and I have no idea how to fix them. Here they are:
with gcj:
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
with jikes:
Found 2 system errors:
*** Error: Could not find package named
/usr/share/java/repository/java/util
*** Error: Could not find package named
/usr/share/java/repository/java/lang
with kaffe's kjc:
java.lang.NoClassDefFoundError: at/dms/kjc/Main
at java.lang.Throwable.<init>(Throwable.java:38)
at java.lang.Error.<init>(Error.java:21)
at java.lang.LinkageError.<init>(LinkageError.java:21)
at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:21)
My CLASSPATH would be /usr/share/kaffe
Any suggestion on what is wrong or missing will be highly appreciated.
Thank you,
Andreas.
Reply to: