Hi everyone. I'm contacting you because I'm trying to install the JDK on Ubuntu 14.04 but having trouble. I was hoping someone on the mailing list could help me. So far, my online search has not been helpful.
I was following this video https://www.youtube.com/watch?v=LR_sDdZ0aOk, and specifically the Ubuntu commands for installing the JDK. I was doing fine until this command: - sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_25/bin/javac" 1 I updated that command for '1.7.0_80' since that is the JDK I am installing. I'm attaching a text file with the Ubuntu commands I was following. Thank you for your help!
----- Commands for Ubuntu ----- Delete OpenJDK - Type into Terminal: sudo apt-get purge openjdk-\* Move to Downloads Folder - Type into Terminal: cd ~/Downloads Create New Directory for JDK Installation - Type into Terminal: sudo mkdir -p /usr/local/java Move Installer into New Directory - Type into Terminal: sudo mv [installer file name].tar.gz /usr/local/java Move to New Directory - Type into Terminal: cd /usr/local/java Extract Installer - Type into Terminal: sudo tar xvzf [installer file name].tar.gz Open Profile File - Type into Terminal: sudo gedit /etc/profile Update PATH Variable - Append to End of File: JAVA_HOME=/usr/local/java/jdk1.7.0_25 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export JAVA_HOME export PATH Inform System of New JDK - Type into Terminal: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_25/jre/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_25/bin/javac" 1 udo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_25/jre/bin/javaws" 1 Set JDK as Default - Type into Terminal: sudo update-alternatives --set java /usr/local/java/jdk1.7.0_25/jre/bin/java sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_25/bin/javac sudo update-alternatives --set javaws /usr/local/java/jdk1.7.0_25/jre/bin/javaws Reload PATH Variable - Type into Terminal: . /etc/profile Move to Directory Containing Source File - Type into Terminal: cd [Location of Directory] Compile Java Program - Type into Terminal: javac [File Name of Source File].java Run Program - Type into Terminal: java [File Name of Source File]
_______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
