***SPAM*** Need help to run java apps on openmoko
Girish Revadigar
girishrevadigar at gmail.com
Fri Oct 31 09:58:17 UTC 2008
Hi,
I tried according to your guidelines and got the cacao and jamvm installed
onto my openmoko.(neo freerunner). I compiled a small HelloWorld program on
my pc to generate HelloWorld.class file, which prints Hello World when run
on my PC using: java HelloWorld command. After that i copied the same
HelloWorld.class file to my openmoko device (freerunner) and tried to run
using the cacao, but it gives the following error:
output when run with cacao:
---------------------------------------------------
# cacao HelloWorld
LOG: [0x400211d0] exception thrown while vm is initializing:
LOG: [0x400211d0] java.lang.ClassNotFoundException: java.lang.object
LOG: [0x400211d0] Aborting ...
Aborted
output when run with jamvm:
---------------------------------------------------
# jamvm HelloWorld
Exception occured while vm initialising.
java/lang/NoClassDefFoundError: java/lang/Class
Also tried running the test.jar file from cacao, and jamvm, that also gives
the same result:
output when tried to run jar file with cacao:
----------------------------------------------------------------
# cacao -cp -jar test.jar
LOG: [0x400211d0] exception thrown while vm is initializing:
LOG: [0x400211d0] java.lang.ClassNotFoundException: java.lang.object
LOG: [0x400211d0] Aborting ...
Aborted
output when tried to run jar file with jamvm:
------------------------------------------------------------------
# jamvm -jar test.jar
Exception occured while vm initialising.
java/lang/NoClassDefFoundError: java/lang/Class
What can be wrong in my settings? Please update me.
Thank you
Girish
On Fri, Oct 24, 2008 at 7:21 PM, Robert Schuster <r.schuster at tarent.de>wrote:
> Hi Girish,
>
> Girish Revadigar schrieb:
> > I am new to openmoko. I want to run one of my java based GUI application
> on
> > openmoko. But when I tried to check for the java support on the newly
> > brought model, I found there is no java utility pre installed (Any JVM
> for
> > running java apps). So can you guide me how can I set up my openmoko to
> run
> > java applications on it? Is there any extra package I need to install?
> > Please guide me, without finding it I can't proceed. Your valuable
> > suggestion will be greatly helpful for me.
> try running:
>
> opkg install cacao
> This gives you the Cacao virtual machine running with GNU Classpath as
> the class library.
>
> Optionally run:
>
> opkg install classpath-awt
>
> To get the native side of Classpath' gtk+ based AWT implementation (for
> Swing/AWT applications).
>
> or
>
> opkg install libswt3.4-gtk-java
>
> for applications that make use of SWT.
>
> Two more links that might be of interest to you:
> https://wiki.evolvis.org/jalimo/index.php/Packages#OpenMoko
> http://wiki.openembedded.net/index.php/Java
>
> Regards
> Robert
>
>
More information about the discuss
mailing list