Hi,<br><br>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:<br>
<br>output when run with cacao:<br>------------------------------<div class="gmail_quote">---------------------<br># cacao HelloWorld<br>LOG: [0x400211d0] exception thrown while vm is initializing:<br>LOG: [0x400211d0] java.lang.ClassNotFoundException: java.lang.object<br>
LOG: [0x400211d0] Aborting ...<br>Aborted<br><br>output when run with jamvm:<br>
---------------------------------------------------<br># jamvm HelloWorld<br>
Exception occured while vm initialising.<br>
java/lang/NoClassDefFoundError: java/lang/Class<br>
<br><br>Also tried running the test.jar file from cacao, and jamvm, that also gives the same result:<br><br>output when tried to run jar file with cacao:<br>----------------------------------------------------------------<br>
# cacao -cp -jar test.jar<br>
LOG: [0x400211d0] exception thrown while vm is initializing:<br>
LOG: [0x400211d0] java.lang.ClassNotFoundException: java.lang.object<br>
LOG: [0x400211d0] Aborting ...<br>
Aborted<br>
<br>output when tried to run jar file with jamvm:<br>------------------------------------------------------------------<br># jamvm -jar test.jar <br>Exception occured while vm initialising.<br>java/lang/NoClassDefFoundError: java/lang/Class<br>
<br>What can be wrong in my settings? Please update me.<br><br>Thank you<br><font color="#888888">Girish</font></div><br><br><div class="gmail_quote">On Fri, Oct 24, 2008 at 6:39 PM, Peter Neubauer <span dir="ltr"><<a href="mailto:peter@neubauer.se">peter@neubauer.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well,<br>
on standard 2008.9 or so, you should be able to install<br>
<br>
opkg install jamvm<br>
<br>
to start with. Starting a visual java program from the command line<br>
(logging in via ssh) would then be:<br>
<br>
export DISPLAY=:0.0 && jamvm -jar myJar.jar<br>
<br>
If you are running Debian, you can even install classpath, openjdk,<br>
harmony etc, but they tend to be quite slow (but Java5)<br>
<br>
HTH<br>
<br>
/peter<br>
<br>
<a href="http://www.oredev.se" target="_blank">http://www.oredev.se</a> - Be there or be gone.<br>
<br>
GTalk: neubauer.peter<br>
Skype peter.neubauer<br>
ICQ 18762544<br>
Phone +46704 106975<br>
LinkedIn <a href="http://www.linkedin.com/in/neubauer" target="_blank">http://www.linkedin.com/in/neubauer</a><br>
Twitter <a href="http://twitter.com/peterneubauer" target="_blank">http://twitter.com/peterneubauer</a><br>
<br>
<a href="http://www.neo4j.org" target="_blank">http://www.neo4j.org</a> - New Energy for Data - the Graph Database.<br>
<a href="http://www.ops4j.org" target="_blank">http://www.ops4j.org</a> - New Energy for OSS Communities - Open<br>
Participation Software.<br>
<a href="http://www.qi4j.org" target="_blank">http://www.qi4j.org</a> - New Energy for Java - Domain Driven Development.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
On Fri, Oct 24, 2008 at 3:01 PM, Girish Revadigar<br>
<<a href="mailto:girishrevadigar@gmail.com">girishrevadigar@gmail.com</a>> wrote:<br>
> Hi Max,<br>
><br>
> Thank you for your reply. From the information on this site, looks like we<br>
> need to do some external work to get java run on openmoko. Can you please<br>
> suggest some java packages available which can be installed in openmoko?<br>
><br>
> Thank you<br>
> Girish<br>
><br>
><br>
> On Fri, Oct 24, 2008 at 5:35 PM, Max Giesbert <<a href="mailto:giesbert@exactt.de">giesbert@exactt.de</a>> wrote:<br>
>><br>
>> have you checked <a href="http://wiki.openmoko.org/wiki/Java" target="_blank">http://wiki.openmoko.org/wiki/Java</a> ?<br>
>><br>
>> please update if necessary...<br>
>><br>
>> Girish Revadigar schrieb:<br>
>> > Hi,<br>
>> ><br>
>> > I am new to openmoko. I want to run one of my java based GUI application<br>
>> > on openmoko. But when I tried to check for the java support on the newly<br>
>> > brought model, I found there is no java utility pre installed (Any JVM<br>
>> > for running java apps). So can you guide me how can I set up my openmoko<br>
>> > to run java applications on it? Is there any extra package I need to<br>
>> > install? Please guide me, without finding it I can't proceed. Your<br>
>> > valuable suggestion will be greatly helpful for me.<br>
>> ><br>
>> > Thank you<br>
>> > Regards<br>
>> > Girish<br>
>> > +91 99867 64809<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > ------------------------------------------------------------------------<br>
>> ><br>
>> > _______________________________________________<br>
>> > Openmoko community mailing list<br>
>> > <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
>> > <a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
>><br>
>> --<br>
>> exactt technology<br>
>> Dipl. Inf. (FH) Max Giesbert<br>
>><br>
>> Schießstättstr. 16 T: +49 17 75 07 53 44<br>
>> D-80339 München F: +49 89 1 22 21 97 02<br>
>><br>
>> _______________________________________________<br>
>> Openmoko community mailing list<br>
>> <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
>> <a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
><br>
><br>
> _______________________________________________<br>
> Openmoko community mailing list<br>
> <a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
> <a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br>