Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5377

Java • Re: Java and ADXL345 accelerometer

$
0
0
It seems there is not a lot of java traffic on this site.
In case anyone is interested, I would like to share some of what I have learned.
First - It is much easier to interact with the RPi using Python rather than Java.
.
If you are interested in using Java on Raspberry Pi -
Look up Frank Delporte on the web and on git hub.
In this github he has created a template for Pi4J projects in java using Maven.
https://github.com/Pi4J/pi4j-maven-archetype
follow the directions in his readme.md
.
Frank is also a champion of JBang.
For simple projects, this takes away much of the Java pain -
no need for Maven or Gradle !!
.
My .jar file using full Java with Maven came out at 750 kB
The .java file without Maven, which runs on Pi (or elsewhere) without compiling - 7 kB
see this video to introduce JBang
https://www.youtube.com/watch?v=w4AR4hWP3Qk

JMD

Statistics: Posted by JMDFlorida — Mon Aug 12, 2024 3:12 pm



Viewing all articles
Browse latest Browse all 5377

Trending Articles