LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-17-2012, 10:00 AM   #1
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 413

Rep: Reputation: 82
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?
 
Old 06-17-2012, 10:18 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,643

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
jre7 Ubuntu 12.04 :

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



.

Last edited by knudfl; 06-17-2012 at 01:11 PM.
 
Old 06-17-2012, 02:46 PM   #3
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 413

Original Poster
Rep: Reputation: 82
Quote:
Originally Posted by knudfl View Post
Thank you. That did the trick. Much though I hate using apt-get (I learn nothing that way), it went beautifully.
 
Old 07-05-2012, 06:18 PM   #4
deb.s
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
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/

Last edited by deb.s; 07-05-2012 at 06:25 PM. Reason: update firefox plugins!
 
  


Reply

Tags
java7-ubuntu, jdk6, jre7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install setup.sh meant for 32 bit on a 64 bit ubuntu 11.10 vedi Linux - Software 4 11-17-2011 11:57 AM
Can we install ubuntu AMD 64 bit on intel 64 bit machine ervaneet82 Linux - General 2 11-11-2010 04:40 PM
how to find and install 32-bit X11 libraries on 64-bit ubuntu 10.04 maxreason Linux - Software 8 08-30-2010 08:51 PM
how to find and install 32-bit X11 libraries on 64-bit ubuntu 10.04 maxreason Ubuntu 1 08-27-2010 08:25 PM
LXer: Ubuntu 32-bit, 32-bit PAE, 64-bit Benchmarks LXer Syndicated Linux News 0 12-30-2009 11:00 AM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration