javac -cp ".:/opt/pi4j/lib/pi4j-core.jar" BME280.java
or
javac -classpath '.:classes:*:classes:/opt/pi4j/lib/*' -d . /home/pi/Java_Weather/BME280.java
Note that you still need the classpath when running the code:
java -cp ".:/opt/pi4j/lib/*:" BME280
or explicitly defining the path:
java -cp ".:/opt/pi4j/lib/*:/home/pi/Java_Weather/:" BME280
No comments:
Post a Comment