Hi Folks,
I'm new to OpenEmbedded and trying to setup a Java environment using
the BeagleBoard:) I followed the instruction here
http://www.angstrom-distribution.org/building-angstrom
to build a Angstrom environement. I'm able to boot my BeagleBoard
(Version C2) using the x11-image without problems. From here I went
ahead and installed JamVM and
$ opkg install jamvm
Ok, I think I have everything I need to run a basic Java Helloworld
app
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
On my desktop, I compiled this using Sun's java version "1.5.0_19" to
produce a HelloWorldApp.class file. I also package it using the jar
utility too (hello.jar). Ok, now, with these two files, I tried to
run it using JamVM with the following results
root@beagleboard:~# jamvm -cp . HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorldApp
<<No stacktrace available>>
Caused by: java.lang.ClassNotFoundException: HelloWorldApp not found
in java.lan
g.ClassLoader$1{urls=[], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:529)
at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
root@beagleboard:~# jamvm -cp . HelloWorldApp.class
Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorldApp/class
<<No stacktrace available>>
Caused by: java.lang.ClassNotFoundException: HelloWorldApp.class not
found in ja
va.lang.ClassLoader$1{urls=[], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:529)
at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
root@beagleboard:~# jamvm -cp hello.jar HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorldApp
<<No stacktrace available>>
Caused by: java.lang.ClassNotFoundException: HelloWorldApp not found
in java.lan
g.ClassLoader$1{urls=[], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:529)
at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
Did I do something wrong here? I think I have the correct packages
installed. I verified I have the following on my system
jamvm - 1.5.2-r0.1
classpath-common - 0.97.2-r8.1
classpath-minimal - 0.97.2-r3.1
root@beagleboard:~# jamvm -showversion
java version "1.5.0"
JamVM version 1.5.2