LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-01-2012, 07:01 PM   #1
edpatterson
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
Trying to install Java 7 on Debian 6.0.3


I am like one step above newbie.

All of the documents I can find assume you are running Ubuntu or come with the disclaimer, 'Should work on Debian too'. They don't :-)

I don't know if it is one of those free vs not free issues I keep bumping in to or not. I am trying to learn Java and would like to use the current version.

Thanks for any help, pointers, repositories to add or links to how-to's you might think will help.

Going back to Ubuntu is not an option.

Ed
 
Old 01-01-2012, 07:24 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,745

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
You can find instructions here.

Pay attention to the package names (32 bit vs 64 bit).
 
1 members found this post helpful.
Old 01-02-2012, 01:16 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Oracle (Sun) Java JDK for Debian, Ubuntu, Linux Mint B1 - http://www.kromhouts.net/blog/server...tu-linux-mint/

Works just fine.
 
1 members found this post helpful.
Old 01-02-2012, 09:46 AM   #4
edpatterson
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Distribution: Ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks, I had no idea it would be so involved. It might be different if I was a serious developer but since I am just a somewhat avid hobbyist I think I will just create a virtual XP machine and use the Windows packages. I can't see blowing up my working install just to play with the new Java. Actually at this point in my learning curve, the ability to use strings in switch|case statements is all I would gain.
 
Old 01-02-2012, 11:04 AM   #5
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Quote:
Thanks, I had no idea it would be so involved. It might be different if I was a serious developer but since I am just a somewhat avid hobbyist I think I will just create a virtual XP machine and use the Windows packages. I can't see blowing up my working install just to play with the new Java. Actually at this point in my learning curve, the ability to use strings in switch|case statements is all I would gain.
With that point made you can also install debian to a vm also & play with the java settings there which won't hurt the debian system that is running. I would try it on my laptop but Vbox doesn't really run well on it.

Last edited by EDDY1; 01-02-2012 at 11:06 AM.
 
Old 01-02-2012, 11:22 AM   #6
edpatterson
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Distribution: Ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
<whacking myself on the forehead>
What a great idea! I have numerous windows VMs under VMWare on my windows servers, never dawned on me to have a Debian vm on my Debian laptop. I wish my personal laptop was as powerful as my employer supplied one. It has an i7 with 8gigs of memory and twin 320gig SATA drives in a RAID 1 configuration.

Thanks for pointing out what should have been an obvious solution! Maybe I need to get away from the keyboard for a while :-)

Ed
 
Old 01-03-2012, 01:47 AM   #7
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
You're welcome!
 
Old 01-08-2012, 10:59 AM   #8
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
@edpatterson I finally got java 7 working on my system & it works well. There some changes necessary to get it working if you need help post back.
@craigevil Thanks for the links they were all helpful! Although java 7 is a tar.gz instead of .bin file
@bigrigdrver I also looked at your link & it's also a great link.

Last edited by EDDY1; 01-08-2012 at 11:08 AM.
 
Old 02-14-2012, 10:14 PM   #9
Dron
Member
 
Registered: Dec 2011
Distribution: Debian
Posts: 37

Rep: Reputation: Disabled
There's a bit of a problem here. I've installed Java 7 on Debian 6 too. Works fine with all browsers except for Chrome/Chromium. First of all, it complains that java plugin is "outdated", but you can still go past that thing using --allow-outdated-plugins parameter, and it kinda works. But that's the thing - "kinda". Not all applets run smoothly. Some get stuck which is what makes me think that either there's something wrong with Java 7 or Chrome isn't yet optimized for it. All fine with Iceweasel and Opera though. No probs.

Last edited by Dron; 02-14-2012 at 10:19 PM.
 
Old 02-15-2012, 11:56 PM   #10
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
That means that the java version is still the outdated version.
Did you change or set the alternatives?

Last edited by EDDY1; 02-16-2012 at 01:15 AM.
 
Old 02-16-2012, 01:30 AM   #11
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
I didn't have sudo setup so I ran these commands as root
Quote:
cd /opt

mkdir java

cd java

mkdir 32

mv /home/user/Downloads/jre-7u2-linux-i586.tar.gz /opt/java/32

chmod 755 /opt/java/32/jre-7u2-linux-i586.tar.gz
cd /opt/java/32

tar zxvf jre-7u2-linux-i586.tar.gz

update-alternatives --install "/usr/bin/java" "java" "/opt/java/32/jre1.7.0_02/bin/java" 1

update-alternatives --set java /opt/java/32/jre1.7.0_02/bin/java

cd /usr/lib/mozilla/plugins

ln -s /opt/java/32/jre1.7.0_02/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Check java version
http://java.com/en/download/installed.jsp
 
Old 02-16-2012, 05:39 AM   #12
Dron
Member
 
Registered: Dec 2011
Distribution: Debian
Posts: 37

Rep: Reputation: Disabled
Hey Eddy. I've solved it already. The thing is.... when i install java 6 Chrome/Chromium says nothing about it and runs it just fine. But if i install java 7.0 it says it's old. BUT.. if i install any other version instead, say, 7.0_01 or 02 it's ok. And no, no other version could interfere, i did all the same as you. Now i'm using jre 7.0_03 actually. Anyways, Chrome doesn't run all applets smoothly. Some work, some don't. For example, try running monopoly game from here: http://board-games.pogo.com/games/monopoly#game
Probably won't run. Works perfectly on Iceweasel and Opera though. Maybe it's not java/chrome problem, but something else, i dunno. But the fact is, it doesn't JUST WORK for now. Some applets get stuck along with Chrome.
 
  


Reply


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
[SOLVED] Debian: how to install java and get it works wch705 Linux - Newbie 5 07-28-2010 02:35 PM
Java automated install (debian) SabbeRubbish Linux - Software 6 03-08-2010 04:02 AM
Could not install Java on Debian Sarge XPlox Debian 2 01-21-2008 08:07 AM
install java in debian master Debian 10 08-25-2005 02:05 PM
trying to install java on debian ahprophet Linux - Software 1 01-10-2005 01:47 PM


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

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