SHARE
TWEET

Untitled

a guest Jan 12th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## SDK
  2. * Download the appropriate tarball from oracle
  3. * Extract in a temporary location
  4. * Move extracted folder to /usr/lib/jvm : sudo mv /path/to/jdk1.8.0_20 /usr/lib/jvm/oracle_jdk8
  5. * Create File /etc/profile.d/oraclejdk.sh with following contents... ($ sudo vim /etc/profile.d/oraclejdk.sh)
  6. ```
  7. export J2SDKDIR=/usr/lib/jvm/oracle_jdk8
  8. export J2REDIR=/usr/lib/jvm/oracle_jdk8/jre
  9. export PATH=$PATH:/usr/lib/jvm/oracle_jdk8/bin:/usr/lib/jvm/oracle_jdk8/db/bin:/usr/lib/jvm/oracle_jdk8/jre/bin
  10. export JAVA_HOME=/usr/lib/jvm/oracle_jdk8
  11. export DERBY_HOME=/usr/lib/jvm/oracle_jdk8/db
  12. ```
  13. * Run: source /etc/profile.d/oraclejdk.sh # OR REBOOT
  14.  
  15. ## Command Line
  16. * Create the following symbolic links
  17. * sudo ln -s <original file> <link to file>
  18. * sudo ln -s /usr/lib/jvm/oracle_jdk8/jre/bin/java /usr/bin/java
  19. * sudo ln -s /usr/lib/jvm/oracle_jdk8/bin/javac /usr/bin/javac
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top