Skip to first unread message

Andy St John

unread,
May 9, 2013, 2:57:53 PM5/9/13
to beagl...@googlegroups.com
This deploys openJDK 6 on beaglebone black.

I could not get this to install successfully on the shipping image.
I flashed my board with BBB-eMMC-flasher-2013.05.08 then tried installing all of the following packages as recommended in another post on this forum, but encountered several issues.

These are the packages I installed in the order I installed them.

The vm-zero package would not install due to a dependency issue (libffi5 >= 3.0.10)
and vm-cacao installed without errors but a VM would not start

Jason Kridner

unread,
May 9, 2013, 3:51:06 PM5/9/13
to beagl...@googlegroups.com
How did you attempt to start it and what was the output?
 

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andy St John

unread,
May 9, 2013, 5:55:05 PM5/9/13
to beagl...@googlegroups.com
Unfortunately I didn't capture the error messages.

I tried to test a java application by invoking the class, i.e.; java -classpath .:/bin/* TheClass. I next tried to compile a simple helloworld file with javac, this produced a list of errors with memory addresses, again, I didn't capture the errors. If I get a chance I'll remove the jamvm package and reinstall/test the cacao package and post the exact output. 

Laurent H.

unread,
May 12, 2013, 4:32:28 PM5/12/13
to beagl...@googlegroups.com

You can try the Oracle JVM (for ARM) : http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
There is a tar.gz file that you deflate where you want.

I use this JVM on the "first gen" beaglebone ... and it should be ok en the BBB. The Oracle JVM is (a lot) more performant than the zeroVM, JamVM or CacaoVM.
I made some tests on Raspbery & Beaglebone : http://parleys.com/play/5156c4d6e4b0c779d7881405/chapter24/about and http://parleys.com/play/5156c4d6e4b0c779d7881405/chapter25/about

Andy St John

unread,
May 13, 2013, 12:34:09 AM5/13/13
to beagl...@googlegroups.com
I tried the Oracle jdk on the shipping image with no luck. Have not tried on the 0508 image. If someone has success please post.


On Thursday, May 9, 2013 2:57:53 PM UTC-4, Andy St John wrote:

Gary Collins

unread,
May 13, 2013, 10:28:45 AM5/13/13
to beagl...@googlegroups.com, beagl...@googlegroups.com
The oracle should work depending on the abi you are running.  Is your system running soft float abi OS or is it hard float abi OS.?  If soft based then download the 7u6 else download the ea 8 version.



Sent from my iPad

Andy St John

unread,
May 13, 2013, 11:44:28 AM5/13/13
to beagl...@googlegroups.com
Interesting note Gary. I am running the 0508 Angstrom image, having replaced the shipping version. The described behavior was observed on the shipping version. Perhaps someone familiar with Angstrom distros can comment definitively on the soft/hard abi issue.



On Thursday, May 9, 2013 2:57:53 PM UTC-4, Andy St John wrote:

Laurent H.

unread,
May 13, 2013, 4:45:26 PM5/13/13
to beagl...@googlegroups.com
I have tried successfully the Oracle embedded JRE 6&7 and the "standard" JDK 7 on beaglebone with various angstrom image (Soft Float version).
With ubuntu (hard float) on beaglebone, I have tried successfully the JDK 8ea version.

You say that you have no luck ... but is there any errors on your system ? Which JVM version do you use ?

Laurent

Laurent H.

unread,
May 27, 2013, 5:26:51 PM5/27/13
to beagl...@googlegroups.com, bruno....@gmail.com
Just download the tar.gz file on the Oracle site : http://www.oracle.com/technetwork/java/javase/downloads/index.html and detarred the file on your SD card. 
(The ARM version)
Put the bin directory on your PATH and you should be able to run yout Java program.

Laurent

Le dimanche 26 mai 2013 14:29:31 UTC+2, bruno....@gmail.com a écrit :
What is the method for installing the oracle JDK on Angstrom? I've been trying but java gets ignored.


On Thursday, May 9, 2013 2:57:53 PM UTC-4, Andy St John wrote:

gijsbert.s...@gmail.com

unread,
Dec 20, 2013, 5:17:32 AM12/20/13
to beagl...@googlegroups.com
I'm really puzzled. I've no problem gettig java to run on the beaglebone black, but I can't find an implementation for com.oracle.deviceaccess.* I would like to reference a GPIOPin.class from my java code and manupulate it directly. Anybody any clues? I'm pulling my hair out here...

Mike Bremford

unread,
Dec 20, 2013, 8:56:03 AM12/20/13
to beagl...@googlegroups.com
That's a Java ME class, and I expect you're running Java SE aren't you? There's no reason that I'm aware of to run the micro-edition on hardware like the BBB, it's easily got enough grunt to run the full JVM.

I'm accessing GPIO, I2C, SPI from J2SE using JNA (https://github.com/twall/jna) which is working very well - it's a wrapper around libc, much easier to work with than JNI, and because it's just libc wrapped in Java you can do anything you can do in C - in particular, you can poll() on filehandles, which means you can use the GPIOs through the /sys/class/gpio interface.

To preempt the next question, I've extracted a bit of code and put it as a shar archive at http://pastebin.com/af3CRU5r. Download the raw content to a shell script and run it, it will give you 5 Java source files. Compile them with the "jna.jar" file from ther JNA project mentioned above. This is an extract from a project I'm working on so in order to use it you'd need to fill in a couple of blanks, namely the events that are being fired when the GPIO changes value: search for "pubGPIO" to see where that happens. I'm also using the GPIO overlays from https://github.com/nomel/beaglebone to set pull-ups/pulldowns, although this isn't essential to the classes. The I2C stuff is there for good measure but is also independent. And if you want to do things completely differently, the POSIX.java file is my way into libc via JNA, and doesn't depend on anything else.


gijsbert.s...@gmail.com

unread,
Dec 23, 2013, 4:18:02 AM12/23/13
to beagl...@googlegroups.com
Hi Mike,

Excellent post, this really cleared a lot for me. Great time to experiment with this over the holidays. Much appriciated., Gijs
Reply all
Reply to author
Forward
0 new messages