LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   trying to install java7 on Ubuntu 12.0.4 64 bit (https://www.linuxquestions.org/questions/ubuntu-63/trying-to-install-java7-on-ubuntu-12-0-4-64-bit-4175411922/)

moxieman99 06-17-2012 10:00 AM

trying to install java7 on Ubuntu 12.0.4 64 bit
 
Downloaded the jre7 *.tar.gz file, moved it to/usr/local so I could install there and have all users use it, then ran tar -zxvf to extract it, but ./configure, make, and make install tell me there is nothing to configure, make, or install


I also never get an opportunity to accept a license, even if I find and download a java6 .bin file.

What am I doing wrong?

knudfl 06-17-2012 10:18 AM

jre7 Ubuntu 12.04 :

http://www.upubuntu.com/2012/03/how-...7-jdk-jre.html



.

moxieman99 06-17-2012 02:46 PM

Quote:

Originally Posted by knudfl (Post 4705474)

Thank you. That did the trick. Much though I hate using apt-get (I learn nothing that way), it went beautifully.

deb.s 07-05-2012 06:18 PM

In case you don't like apt-get for java installation...

1. open Terminal. When it opens, run the commands below to remove all other installations of OpenJDK from your system.
sudo apt-get purge openjdk*
2. download Java JDK package (eg.jdk-7u5-linux-x64.tar.gz)
3. extract the downloaded package at any location of your choice...
tar -xvf <path-to-your-favorite-folder>
4. create a folder (final destination for JDK files and folders)
sudo mkdir -p /usr/lib/jvm/jdk1.7.0
5. move all the JDK files and folders to this new location
sudo mv <folder-where-jdk-was extracted>/* /usr/lib/jvm/jdk1.7.0/
6. copy and paste each command as shown below one-at-a-time to enable Java JDK, press Enter after each line.
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
7. you may modify the PATH variable in your ~/.profile to reflect the JDK whereabouts.

Hope this will help!

Next enable java-plugins in Firefox
8. create a Mozilla plugins folder in your home directory.
mkdir ~/.mozilla/plugins/
9. create a symbolic link to your Mozilla plugins folder. For 32-bit systems, replace ‘amd64’ with ‘i386’.
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/


All times are GMT -5. The time now is 06:31 AM.