OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: grog on March 27, 2006, 03:59:24 pm
-
Here I am trying to get java apps running in OZ/GPE 3.5.4. I installed the kaffe-gtk & kaffe-gtk-common packages from the x11 & base feeds respectively. I had to correct a symlink under /usr/lib/kaffe-gtk:
grog@grond[pts/2][/usr/lib/kaffe-gtk]$ ll
drwxr-xr-x   4 root   root       0 Mar 27 14:02 bin
drwxr-xr-x   4 root   root       0 Mar 27 14:02 jre
drwxr-xr-x   3 root   root       0 Mar 27 14:02 lib
ipkg created the bin directory where it should have been a symlink, thusly:
grog@grond[pts/2][/usr/lib/kaffe-gtk]$ ll
lrwxrwxrwx   1 root   root       8 Mar 27 14:25 bin -> jre/bin/
drwxr-xr-x   4 root   root       0 Mar 27 14:02 jre
drwxr-xr-x   3 root   root       0 Mar 27 14:02 lib
And now my java command runs without errors (should I post a bug report about this?), but produces nothing. I'm attempting to run a book reader called JBook (http://jbook.sourceforge.net/):
grog@grond[pts/1][/media/card1/tmp/jbook-1.2]$ cat jbook.sh
#!/bin/sh
# Starts JBook
echo "Starting JBook..."
java -jar jbook.jar
grog@grond[pts/1][/media/card1/tmp/jbook-1.2]$ ./jbook.sh
Starting JBook...
And that's all I get. No errors, no window, no nuttin'. Is this kaffe's or jbook's problem? Any ideas? thks
-
You also could try jamvm and sablevm.
-
You also could try jamvm and sablevm.[div align=\"right\"][a href=\"index.php?act=findpost&pid=120545\"][{POST_SNAPBACK}][/a][/div]
The only packages in the feeds for either of those are sablevm-classpath & sablevm-classpath-native in x11. I'll try grabbing other jar files & seeing if it's kaffe or not. thks
-
You also could try jamvm and sablevm.[div align=\"right\"][a href=\"index.php?act=findpost&pid=120545\"][{POST_SNAPBACK}][/a][/div]
The only packages in the feeds for either of those are sablevm-classpath & sablevm-classpath-native in x11. I'll try grabbing other jar files & seeing if it's kaffe or not. thks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120678\"][{POST_SNAPBACK}][/a][/div]
I could not find jamvm, but sablevm-classpath is in the oz feeds there but you also need to intall the actual sablevm package which is not in the feed. I had to build it myself using the openembedded package.
I did get sablevm to work for simple programs. I'ts not perfect. You need to compile/recompile programs using it's own compiler ie javac-sablevm *.java then java-sablevm MyMainClass
Hope this info helps someone,
darmou
-
Well, I downloaded & installed 5.0 of the JDK, entered, compiled & ran the helloworld app, worked fine on the pc, copied it to the Z, same problem. No output, just stalls. I even have to 'kill -9' the process 'cause it won't die.
(sigh)
-
Entered bug 821 (http://bugs.treke.net/show_bug.cgi?id=821).