ts-7000
[Top] [All Lists]

Re: [ts-7000] Java Step-by-Step

To:
Subject: Re: [ts-7000] Java Step-by-Step
From: Christopher Friedt <>
Date: Tue, 10 Apr 2007 12:27:30 +0200
I can't give you a complete step-by-step procedure, but I can definitely 
give you something a bit more general:

note: this could potentially mangle your /usr/local directory if you 
have things installed there. Here goes...

1) download the latest gnu classpath-0.93

mine was configured with

CFLAGS="-Os" ./configure --target=arm-linux --host=arm-linux 
--prefix=/usr/local --with-jikes --enable-collections 
--enable-default-preferences-peer=file --without-gcj --without-x 
--disable-gtk-peer --disable-gconf-peer  --disable-plugin

then do a typical make && su -c 'make install'

2) download the latest jamvm-1.4.5

mine was configured with

CFLAGS="-Os" ./configure --prefix=/usr/local/jamvm 
--with-classpath-install-dir=/usr/local --host=arm-linux --target=arm-linux

then do a typical make && su -c 'make install'

3) cleanup and remove unwanted class files

You should edit glibj.zip in /usr/local/share/classpath and remove all 
of the packages that you deem unnecessary. The packages I've removed are:

zip -d  glibj.zip org/omg/* javax/swing/* javax/print/* javax/sound/* 
java/rmi/* gnu/java/awt gnu/java/awt/* gnu/java/rmi/* gnu/CORBA/* 
gnu/javax/print/* gnu/javax/sound/* gnu/javax/swing/* 
gnu/javax/rmi/CORBA/* java/awt/* javax/rmi/*

remove tools.zip, all of the bash files in bin/, header files from 
include/ ( for the classpath ), info files, examples, locale data, etc.

I ended up getting glibj.zip down to 3.4MB.

Alternatively, if you would like to download something already packaged, 
try this:

http://vaiprime.visibleassets.com/~cfriedt/jamvm-1.4.5_and_gnu-classpath-0.93__stripped.tar.gz

Please note, i haven't actually tested this yet because it was only just 
built last night, so use at your own risk.


~/Chris


PS:

Does anyone know how to change all of the static paths that are placed 
into libraries & exutable files during compile?

For instance, i would like the --prefix stored in a library or 
executable to be /usr/local, but when I'm cross-compiling the package, i 
do not actually want it installed to /usr/local but 
$PWD/../package-install/usr/local, so that I can easily create a tarball 
of the installation files.




Douglas Lenz wrote:
> Hi all!
> 
> I've gone back through the archives and found a few people that have got 
> Java running on their TS-7xxx boards.
> 
> Has anyone written a step-by-step guide on compiling Java for the TS-7xxx?
> 
> Doug
> 
> 


 
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