• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cross compiling Java SE application included Device I/O API on Linux desktop for Embedded Devices  RSS feed

 
Mohsen Salahshoor
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello gentlemen,

Could I develop my application which uses Device I/O API on my linux laptop then compile it for running on an embedded device? If so, will you please tell me how?

(I want to use eclipse as the IDE.)
 
Ron McLeod
Bartender
Posts: 1603
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm interested in this as well. Will you be using Oracle's Java SE Embedded?
 
Ron McLeod
Bartender
Posts: 1603
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An update based on some recent hands-on experience ...

If the target device is a Raspberry Pi running Raspbian OS, you can use the Pi4J API and libraries for GPIO operations and communications over the serial port, I2C, and SPI. The Raspbian distribution includes a Java 8 SE runtime environment, the Pi4j libraries, and the platform-specific JNI library.

I have only tried GPIO so far and found the API functionality quite complete and easy to use. My development environment is Eclipse on Windows 7 and CentOS Linux .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!