You are not logged in.

#1 2012-07-14 19:02:52

fpilee
Member
From: Windows 7
Registered: 2011-10-06
Posts: 104
Website

Use oracle JDK by default.

I have installed oracle jdk7, downloading from their site, and extracting on /opt/java.
have exported $PATH, $JAVA_HOME and changed the file /etc/profile.d/opendjk.sh to make this changes availables from boot, and change /usr/bin/java to point /opt/java/bin
BUT still when i open netbeans use openjdk by default

Offline

#2 2012-07-14 19:11:20

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Use oracle JDK by default.

jdk and openjdk should conflict during install, but if they did not then  try installing java-environment which is a place holder package that jdk and open jdk both provide.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2012-07-14 19:25:58

fpilee
Member
From: Windows 7
Registered: 2011-10-06
Posts: 104
Website

Re: Use oracle JDK by default.

solved

nano /usr/bin/netbeans

replace $netbeans_jdkhome with $JAVA_HOME

are 2 replaces

Offline

#4 2012-07-14 20:02:02

fatboy
Member
From: India
Registered: 2012-03-17
Posts: 73

Re: Use oracle JDK by default.

There is also the oracle jre and jdk package in aur. I guess it takes care of java-environment, you will be asked to replace jdk7-openjdk.

Offline

#5 2012-07-15 16:22:07

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: Use oracle JDK by default.

See also https://bbs.archlinux.org/viewtopic.php?id=138627 for more advanced "JDK side-by-side" instructions.

Offline

#6 2012-07-15 17:12:28

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Use oracle JDK by default.

Inxsible wrote:

jdk and openjdk should conflict during install, but if they did not then  try installing java-environment which is a place holder package that jdk and open jdk both provide.

He didn't install oracle java from the repos, but directly. Hence no conflict.

Offline

Board footer

Powered by FluxBB