Hi Mike,

Excellent post, this really cleared a lot for me. Great time to experiment 
with this over the holidays. Much appriciated., Gijs

On Friday, December 20, 2013 2:56:03 PM UTC+1, Mike Bremford wrote:
>
> 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.
>
>
> On 20 December 2013 10:17, <gijsbert.s...@gmail.com <javascript:>> wrote:
>
>> 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...
>>
>> On Thursday, May 9, 2013 8:57:53 PM UTC+2, Andy St John wrote:
>>>
>>> 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.
>>>
>>> openjdk-6-common<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-common>
>>>
>>> openjdk-6-demo<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-demo>
>>>  
>>>
>>> openjdk-6-doc<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-doc>
>>>
>>> openjdk-6-java<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-java>
>>>  
>>>
>>> openjdk-6-jdk<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jdk>
>>>
>>> openjdk-6-jre<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jre>
>>>  
>>>
>>> openjdk-6-source<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-source>
>>>
>>> openjdk-6-vm-cacao<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-vm-cacao>
>>>  
>>>
>>> openjdk-6-vm-jamvm<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-vm-jamvm>
>>>
>>> openjdk-6-vm-zero<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-vm-zero>
>>>  
>>> These are the packages I installed in the order I installed them.
>>> openjdk-6-common<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-common>
>>> openjdk-6-java<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-java>
>>> openjdk-6-jre<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jre>
>>> openjdk-6-jdk<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jdk>
>>> openjdk-6-vm-jamvm<http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-vm-jamvm>
>>>
>>> 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
>>>
>>>  -- 
>> 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 <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to