Installing oracle jdk

Hi, I am attempting to install oracles JDK. I installed using this guides rpm instructions (https://en.opensuse.org/SDB:Installing_Java#Java_Development_Kit_installation_using_Oracle.27s_RPM).

The JDK is not listed under the [java -version] command and Netbeans says there is no JDK installed.

Here is my Konsole info to reflect that
jacob@linux-pp6r:~> su
Password:
linux-pp6r:/home/jacob # cd /home/jacob/Downloads
linux-pp6r:/home/jacob/Downloads # rpm -ivh jdk-8u101-linux-x64.rpm
Preparing… ################################# [100%]
package jdk1.8.0_101-2000:1.8.0_101-fcs.x86_64 is already installed
linux-pp6r:/home/jacob/Downloads # java -version
java version “1.8.0_101”
Java™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ 64-Bit Server VM (build 25.101-b13, mixed mode)
linux-pp6r:/home/jacob/Downloads #

Any ideas on why I am having this issue?

On Mon, 19 Sep 2016 01:26:02 +0000, jls7884 wrote:

> Hi, I am attempting to install oracles JDK. I installed using this
> guides rpm instructions (http://tinyurl.com/pltmygw).
>
> The JDK is not listed under the [java -version] command and Netbeans
> says there is no JDK installed.
>
> Here is my Konsole info to reflect that jacob@linux-pp6r:~> su Password:
> linux-pp6r:/home/jacob # cd /home/jacob/Downloads
> linux-pp6r:/home/jacob/Downloads # rpm -ivh jdk-8u101-linux-x64.rpm
> Preparing… #################################
> [100%]
> package jdk1.8.0_101-2000:1.8.0_101-fcs.x86_64 is already installed
> linux-pp6r:/home/jacob/Downloads # java -version java version
> “1.8.0_101”
> Java™ SE Runtime Environment (build 1.8.0_101-b13)
> Java HotSpot™ 64-Bit Server VM (build 25.101-b13, mixed mode)
> linux-pp6r:/home/jacob/Downloads #
>
> Any ideas on why I am having this issue?

What is JAVA_HOME set to?


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

JAVA_HOME=$JPATH

My issue has been resolved. I dug up the location where the jdk was installed to and figured out that I needed to add the path to the netbeans.conf file.

On Mon, 19 Sep 2016 15:56:01 +0000, jls7884 wrote:

> My issue has been resolved. I dug up the location where the jdk was
> installed to and figured out that I needed to add the path to the
> netbeans.conf file.

Cool, glad you got it resolved. That JAVA_HOME value looks odd to me,
but if $JPATH resolves OK, then that should work as well.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C