[Fwd: SableVM and sdljava on arm] (Solved)

Kim Fredenberg <[email protected]> Thu, 21 Apr 2005 11:08:04 +0300
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To answer my own question:

I did a strace and noticed that I was missing libSDL, SableVM works great!

Kim

- -------- Original Message --------
Subject: SableVM and sdljava on arm
Date: Thu, 21 Apr 2005 10:39:09 +0300
From: Kim Fredenberg <[email protected]>
To: [email protected]

Hello list!

I started playing around with sablevm on an arm based board. I'm running
the arm port of Debian unstable and I installed sablevm directly from
there. Everything installed nicely and running java apps is no problem.

I also found sdljava and thouhgt that I could produce some GUIs directly
 onto the framebuffer using this nice library (I've been doing some
things with the native SDL as well). I compiled the native part and the
java part in the same environment, all went well.

So here comes my problem, SableVM does not seem to find the native
library (libsdljava.so) even though I specify it as
- -Djava.library.path="path/to/lib". I have tried with:

# java-sablevm
- -Dgnu.classpath.boot.library.path=/home/root/sdljava-0.9.1/lib/ -cp
.:sdljava-0.9.1/src/ SDLTest

# java-sablevm -Djava.library.path=/home/root/sdljava-0.9.1/lib/ -cp
.:sdljava-0.9.1/src/ SDLTest

All I get is:

java.lang.UnsatisfiedLinkError: Native library `sdljava' not found (as
file `libsdljava') in gnu.classpath.boot.library.path and java.library.path

So it seems that the java.library.path property isn't being respected.

I also tested the properies by printing out
System.getProperty("java.library.path") and this gives me:

/home/root/sdljava-0.9.1/lib/:::/usr/lib

which looks as it should, I guess.

Does anyone have a clue what I might be doing wrong here?

best regards,
	
Kim

PS.

ls -l /home/root/sdljava-0.9.1/lib/
total 612
- -rw-r--r--  1 kfredenb users 280683 Feb 20 14:19 bsh.jar
- -rw-r--r--  1 kfredenb users 149075 Feb 20 14:19 jdom.jar
- -rwxr-xr-x  1 root     root  129608 Apr 20 19:24 libsdljava.so
- -rwxr-xr-x  1 root     root    8718 Apr 20 19:35 libsdljava_image.so
- -rwxr-xr-x  1 root     root   25669 Apr 20 19:24 libsdljava_mixer.so
- -rwxr-xr-x  1 root     root   21766 Apr 20 19:29 libsdljava_ttf.so

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCZ19kFCNDdoFvKjQRAm2uAJwJiyH0OOlzawDlwgQ9CtTMNauiIgCdFH+b
HaKjnV87k8OhplBGTvINo3M=
=JAn9
-----END PGP SIGNATURE-----