Help - Search - Members - Calendar
Full Version: Java In Oz/gpe 3.5.4
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Angstrom & OpenZaurus
grog
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:

CODE
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:

CODE
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:

CODE
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
koen
You also could try jamvm and sablevm.
grog
QUOTE(koen @ Mar 27 2006, 03:15 PM)
You also could try jamvm and sablevm.
*

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
darmou
QUOTE(grog @ Mar 28 2006, 12:29 PM)
QUOTE(koen @ Mar 27 2006, 03:15 PM)
You also could try jamvm and sablevm.
*

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
*



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
grog
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) sad.gif
grog
Entered bug 821.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.