| JavaOnIPAQ BlackDownJavaOnFam07 | JumpSearch: SearchPage RecentChanges HelpPage

## Getting Blackdown Java 1.3.1 working on Familiar 0.7 (includes H3900)

As I understand Sun used a non public part of the libc6 API. When Familiar upgraded libc6 it broke Java. The way I've got it going is to install the old libraries and reference them.

## Adding support for the H3900.

You've just got to tell Java that the armv5tel architecture is the same as the armv4l architecture.

ln -s /usr/lib/jdk1.3/lib/armv4l /usr/lib/jdk1.3/lib/armv5tel
ln -s /usr/lib/jdk1.3/bin/armv4l /usr/lib/jdk1.3/bin/armv5tel

## Installing the old version of libc6

This is how I download and install the old libraries.

cd /tmp
wget http://familiar.handhelds.org/familiar/releases/v0.6.2/x/armv4l/libxt_4.1-2_arm.ipk
wget http://familiar.handhelds.org/familiar/releases/v0.6.2/base/armv4l/libc6_2.2.5-6-fam4_arm.ipk
mkdir /usr/local/oldlibs
ar -x libxt_4.1-2_arm.ipk data.tar.gz
gunzip -c<data.tar.gz|tar xC /usr/local/oldlibs/
rm data.tar.gz
ar -x libc6_2.2.5-6-fam4_arm.ipk data.tar.gz
gunzip -c<data.tar.gz|tar xC /usr/local/oldlibs/
rm data.tar.gz

## Telling Java to use the old version of libc6

Edit the java execution script. I usually use:

vi `which java`

Replace this line:

exec ${DEBUG_PROG} "${prog}" "$@"

with this one:

exec /usr/local/oldlibs/lib/ld-linux.so.2 --library-path "/usr/local/oldlibs/lib/:/usr/local/oldlibs/usr/X11R6/lib:$LD_LIBRARY_PATH" ${DEBUG_PROG} "${prog}" "$@"

--- Anthony Jones

===============================

I get the following message:

panic, trying to attach thread to uninitialized VM.

After applying the exact steps above. Does anyone have any idea/solutions to this problem?

--- Christoffer Andersson

============================

I am having the same problem that Christoffer describes above. If anyone knows of a solution, please email me at gillian@cc.gatech.edu

Thanks!

-- Gillian Hayes

===============================

After having done exactly as in the above description I am able to run command line java program, but not anyting with X (AWT nor Swing). I get the follwing error:

Exception in thread "main" java.lang.UnsatisfiedLinkError?: /usr/local/j2re1.3.1/lib/armv4l/libawt.so: /usr/local/oldlibs/lib/libc.so.6: version `GLIBC_2.3' not found (required by /usr/X11R6/lib/libICE.so.6)

I am running familiar GPE2 version 7.1 on ipaq 3765. If anybody knows how to solve that please let me know: jfolt@yahoo.com

Jarek Foltynski

ps. I have done the installation again according to the below description by Gianni and now it works great!

===============================

we have the same problem of Jarek. but we have an ipaq 3970 with familiar 0.7.2 and the blackdown 1.3.1 RC1 if someone have solved this please email us at gianniftp@yahoo.it or post a message to the blackdown mailing list.

Gianni e Bobby

ps: after a while we have reflashed the Ipaq with 0.7.1 and everything gets well. java is now working and we are very happy ========================================

Gianni's steps to GetJavaWorking

UserOptions | Last edited Fri, 28 May 2004 11:29:35 -0400 Is there something wrong with this page that you can't fix? Please send email to admin@handhelds.org. | Edit this page