I am on the road this weekend (Cornell reunion. Go Big Red!).
Before I left, I tried some more Java options, and now it is totally
messed up! :-) Here is the latest. Note: I am doing this from memory,
so I might have some mistakes.
I was unable to compile gnu-classpath natively on the 7800 because
'configure' required a Java 1.5-compatible compiler. So I loaded the
source onto my Pentium M laptop running Fedora and compiled it there.
I first compiled it with all the defaults on the laptop and it seemed
to work. Then I compiled it with the option '--host=arm-linux', which
again happened without error. This resulted in a 'lib' directory with
a bunch of subdirectories: 'META-INF', 'gnu', 'java', 'javax', 'org', etc.
So then I went to the 7800 and renamed the original
'/usr/share/classpath' directory (this is the one that has 'META-INF',
'javax', etc.). I made a new classpath directory and copied everything
from 'lib' into it. So it has all the same subdirectories as the original.
OK, so then I took a simple Java source file and and compiled it with
'javac TestMath.java'. The 'javac' is actually a a softlink to 'gcj'.
No problem. But when I tried to execute, no good. The command 'jamvm
TestMath' resulted in a NoClassDefError. The error cited
'java/lang/Class'. But the file
'/usr/share/classpath/java/lang/Class.class' exists and is publicly
readable! I even tried adding '-cp /usr/share/classpath' and also
setting the CLASSPATH environment variable to it, but I got the same
error. So...
1) What am I missing here?
2) Where can I find a pre-compiled gnu-classpath? 'apt-get' could't
find one.
3) How can I get jamvm to tell me what classpath it is using by default?
Thanks everyone!
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|