Re: configure options so can run output binaries on armv5tel iPAQ 3955) arch?

David Bélanger <[email protected]> Tue, 8 Mar 2005 14:11:30 -0500
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
Hi,

2 things:

1) .class files are architecture-independent.  So you can always
compile your java program (provided that they don't use native
libraries) elsewhere and copy the .class/.jar to your iPAQ.

2) as Chris mentionned, try to get the jikes compiler.

jikes + SableVM Classpath libraries gives you a full compilation system.
(as jikes by itself does not include class libraries).

SableVM has a javac wrapper around jikes.  However, it has been added
after the 1.1.10 release.

You can write your own wrapper or patch 1.1.10 with:
http://www.sable.mcgill.ca/~dbelan2/ebuilds/dev-java/sablevm/files/javac-wrapper-patch.diff
and rebuild it.  Note that the SableVM javac wrapper is first file in
the patch, could just use it and remove the + before the lines.

If you decide to patch and rebuild, you will need to run:
aclocal && \
libtoolize --force && \
autoconf && \
autoheader && \
automake --foreign -a -c

that requires having the autoconf/automake/libtool installed.

David

On Mon, Mar 07, 2005 at 08:34:26PM -0500, Chris Pickett wrote:
> Hi Steve,
> 
> Is there a jikes package available for you machine?  This is a high 
> quality, free Java compiler that will produce class files for you.  Let 
> us know how you make out.
> 
> Cheers,
> Chris
> 
> Kirby, Stephen (Civ,ARL/CISD) wrote:
> >Hello,
> > 
> >I want to run java programs on my iPAQ 3955.  I did an "ipkg install 
> >sablevm" after installing familiar linux v0.8.1, on my iPAQ and it shows 
> >java and java-sablevm exe's in /usr/bin.  So I appear to have a viable 
> >JVM on the iPAQ.  I don't see a "javac" binary on the iPAQ, so...........
> > 
> >Now I need to compile the java code on my redhat enterprise linux PC so 
> >that it can run on the iPAQ 3955.  (am I asking the impossible?)  I have 
> >downloaded the sablevm and sablevm-classpath tar files.  I did a "uname 
> >-a" on my iPAQ and it showed "armv5tel", which I believe is the iPAQ 
> >architecture.  When I do the ./configure for these sablevm and 
> >sablevm-classpath packages prior to "make", what arg(s)/options should I 
> >give to "configure", so that the resultant "make" creates a sablevm 
> >equivalent to "javac" (if there is such a thing), which in turn, will 
> >produce ".class" files that will run on my iPAQ armv5tel architecture.  
> >TIA.
> > 
> >--Steve
> > 
> >P.S. - I took a quick look at Kaffe, but the compile died on my RH linux 
> >system, so sablevm seemed like a more viable choice :>
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >SableVM-user mailing list
> >[email protected]
> >http://sablevm.org/lists/control/listinfo/sablevm-user
> 
> 
> _______________________________________________
> SableVM-user mailing list
> [email protected]
> http://sablevm.org/lists/control/listinfo/sablevm-user

-- 

---

David Bélanger
Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt