I have to use oracle jdk because of homework and some software like docear.
But with openSuse 13.2 openjdk 1.8 is default. It is similar with other Linux system.
So install oracle jdk and change it without uninstall openjdk is a good idea.
- download “Java Platform (JDK) 8u60” on the offical website(refering xcodeghost T_T).
Actually I download “NetBeans with JDK 8”.It depends on you.
- select your platform, download the file, check Checksum, and then install it.
- Remeber your installation directory. Then it’s time to set environment.
- edit ~/.bashrc, add the following lines and save
export JAVA_HOME=[your installation path of jdk]
Then oracle jdk works after restart your terminal.