You could achieve that with crontab
. As root
using eg. crontab -e
(the recommended way of editing the crontab
file) you can add the line
@reboot /usr/bin/java -classpath /home/pi/:/home/pi/lib/phidget21.jar -jar /home/pi/TestSensor.jar
As indicated you may have to add full paths to java
, elements in the classpath and TestSensor.jar
. You should replace "my" paths with the actual locations of your java
and JARs.
Cheers,