Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-01-2014, 03:27 AM   #1
Registered: Jul 2013
Posts: 45

Rep: Reputation: Disabled
both openjdk and oracle jdk on debian

I've Installed oracle JDK version 1.8 on a debian machine that already has openjdk 1.6.i've set the path variable in etc/login.defs and java_home variable In etc/environment.
When I echo $JAVA_HOME it points to the oracle version correctly and when I run javac It uses the oracle 1.8 version.
The problem is when I run the java command , It runs the openjdk 1.6 version and I'm not sure why.If I type java -version It shows the openjdk version.
Old 12-01-2014, 08:01 AM   #2
Registered: Jul 2013
Posts: 45

Original Poster
Rep: Reputation: Disabled
I didn't notice openjdk was set before oracle java.
I was looking for a /usr/lib/jvm In the $PATH but It's also set In /usr/sbin which I didn't know.


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] openjdk vs jdk what is the good? rubankumars Slackware 8 08-10-2014 03:54 AM
[SOLVED] Installing Oracle jdk on Debian Squeeze Using Update Alternatives kujirasan Linux - Software 7 07-23-2014 11:53 PM
LXer: Oracle writes new OpenJDK rules LXer Syndicated Linux News 0 02-02-2011 06:00 AM
openjdk-6-jdk vs official JDK? davidstvz Debian 3 09-22-2010 03:06 PM
About openjdk-6-jdk satimis Programming 3 05-03-2010 07:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:27 PM.

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