SmartHome RaspberryPi Config
Download maven from
https://maven.apache.org/install.html
move folder to /opt
add path
file : /etc/profile.d/maven.sh
export MAVEN_HOME=/opt/apache-maven-3.3.9
export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt
export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin
install eclipse
sudo apt-get udate
sudo apt-get install eclipse
install pi4j
curl -s get.pi4j.com | sudo bash
set pi4j to classpath
file : /etc/profile.d/maven.sh
export CLASSPATH=$CLASSPATH:/opt/pi4j/lib/'*'
install maven in eclipse
goto install new software
http://download.eclipse.org/technology/m2e/releases/
to compile and run the .class file
javac -cp .:$CLASSPATH -d SmartHome(directory) *.java current directory = ./
sudo java -cp .:$CLASSPATH SmartHome.SmartHome
install web server
https://nodejs.org/en/download/package-manager/
node js npm
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update