MACINTOSH
INFO :
https://www.java.com/nl/download/faq/java_mac.xml#mac1010
JAVA DOWNLOAD
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
https://www.java.com/en/download/faq/java_mac.xml
I followed this note and installed the 8u51 jdk
OTHER HARDWARE/PLATFORM
https://github.com/openhab/openhab/wiki/Hardware-FAQ#banana-pi-bpi
Also, edit your "~/.bashrc" file using this command
nano ~/.bashrc
and add the following two lines to the bottom of the file and save.
export JAVA_HOME="/opt/java/jdk1.8.0"
export PATH=$PATH:$JAVA_HOME/bin
Reboot or re-login to apply the export to your environment.
info : stackoverflow.com/questions/18144660/what-is-path-of-jdk-on-mac
$ whoami
Kris
$ id Kris
uid=501(Kris) gid=20(staff) groups=20(staff),...
of via whoami | xargs id
of via id `whoami`
$ mkdir /opt/openHAB2
$ cd /opt/
$ sudo chown -R Kris:staff ./openHAB2/
Password:
$ ls -als
total 0
...
0 drwxr-xr-x 2 Kris staff 68 Jul 22 23:04 openHAB2
$ /usr/libexec/java_home
$ ls -l `which java`
$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
$ ls -l `which java`
lrwxr-xr-x 1 root wheel 74 Jul 20 23:35 /usr/bin/java ->
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
/opt/openHAB2/openhab2-master/git/openhab2/
.git/ CONTRIBUTING.md README.md contrib/ features/ project-orga/
.gitignore LICENSE addons/ distribution/ pom.xml src/
AUTHORS MAINTAINERS bundles/ docs/ products/ targetplatform/
$ java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
$ ls -l `which java`
lrwxr-xr-x 1 root wheel 74 Jul 20 23:35 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
$ ls -als /System/Library/Frameworks/JavaVM.framework/Versions
total 64
0 drwxr-xr-x 11 root wheel 374 Jul 20 23:35 .
0 drwxr-xr-x 12 root wheel 408 Jul 20 23:35 ..
8 lrwxr-xr-x 1 root wheel 10 Jul 20 23:35 1.4 -> CurrentJDK
8 lrwxr-xr-x 1 root wheel 10 Jul 20 23:35 1.4.2 -> CurrentJDK
8 lrwxr-xr-x 1 root wheel 10 Jul 20 23:35 1.5 -> CurrentJDK
8 lrwxr-xr-x 1 root wheel 10 Jul 20 23:35 1.5.0 -> CurrentJDK
8 lrwxr-xr-x 1 root wheel 10 Jul 20 23:35 1.6 -> CurrentJDK
8 lrwxr-xr-x 1 root wheel 10 Jul 20 23:35 1.6.0 -> CurrentJDK
0 drwxr-xr-x 8 root wheel 272 Jul 20 23:35 A
8 lrwxr-xr-x 1 root wheel 1 Jul 20 23:35 Current -> A
8 lrwxr-xr-x 1 root wheel 59 Jul 20 23:35 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
VERDER ONDERZOEKEN
stackoverflow.com/questions/18144660/what-is-path-of-jdk-on-mac
Bron : https://www.youtube.com/channel/UC7OK88DW0La_BJlcXZg8ydQ