ts-7000
[Top] [All Lists]

[ts-7000] Re: Which Java for TS-7800?

To:
Subject: [ts-7000] Re: Which Java for TS-7800?
From: "dokapra" <>
Date: Fri, 06 Jun 2008 23:43:41 -0000
--- In  "mikeciaraldi" <> wrote:
>
> 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!
>
It seems that you have wrong bootclasspath. Try to set that.
And strings is your friend, string jamvm will show you where is it
looking for libs.
And, of course, when building jamvm you have to tell it where to look
for classpath using --with-classpath-install-dir config parameter.
I was using jamvm 1.4.5, and then tried cacao 0.98.
jamvm starts in half time, and uses half of memory compared to cacao,
but runs at half the speed of cacao...


------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU