Tech notes on the go

Thursday, April 9, 2015

Install Oracle's JDK to any linux again

untargz java jdk distro

define JAVA_HOME and export it

cd $JAVA_HOME/bin

fix alternatives - use as root or append sudo

for i in `ls`; do update-alternatives --install "/usr/bin/$i" "$i" "`pwd`/$i" 1; done;


Posted by fr0l at 10:17 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Java

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  May (1)
  • ►  2019 (1)
    • ►  October (1)
  • ►  2017 (1)
    • ►  January (1)
  • ►  2016 (3)
    • ►  November (2)
    • ►  September (1)
  • ▼  2015 (15)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  June (2)
    • ▼  April (7)
      • Just say no to more end-to-end tests
      • Java Mission Control - profiling at your hands
      • Thread stop in Java
      • Install Oracle's JDK to any linux again
      • Find files and tar them
      • chrome dev tools truncate text in console
      • Start Google Chrome on Android Emulator
    • ►  February (1)
  • ►  2014 (24)
    • ►  August (12)
    • ►  June (2)
    • ►  May (5)
    • ►  April (2)
    • ►  March (2)
    • ►  January (1)
  • ►  2013 (26)
    • ►  December (3)
    • ►  October (11)
    • ►  September (8)
    • ►  August (4)
Simple theme. Powered by Blogger.