Saturday, September 30, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1288  / 11 Months ago, mon, december 5, 2022, 12:03:10

I tried to install Oracle SQL Developer. But my ubuntu has IBM ACE 11 Developer Edition installed, which makes me not able to use the IBM/java path to run the Oracle SQL Developer.
So I downloaded and installed JAVA SE 8 and set to use the new Java JDK by sudo update-alternatives -set java

Current at my user terminal even I have set to use the new Java JDK:

java version "1.8.0_271"
Java(TM) SE Runtime Environment (build - pxa6480sr6fp20ifix-20210224_01(SR6 FP20+IJ30974))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20210223_466229 (JIT enabled, AOT enabled)
OpenJ9 - 5b31a42
OMR - 4eb8f5f
IBM - b7e48f4)
JCL - 20201119_01 based on Oracle jdk8u271-b0

$ which java

I want to ask what could be the setting that cause my user terminal java -version is still the java installed via the installation of ACE 11? Is it some IBM ACE 11 setting that makes the java -version different from root terminal even I have run the update-alternatives -set java? And cause my sqldeveloper not able to start at my user account?

As in my root terminal, when type java -version:

java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)

# which java

In the /etc/alternatives:
lrwxrwxrwx 1 root root 34 June 4 15:52 java -> /usr/lib/jvm/jdk1.8.0_29/bin/java*

I set JAVA_HOME in both my user and root .bashrc and .profile to /usr/lib/jvm/jdk1.8.0_29/bin/java

More From » jdk


I would guess that it is caused by incorrect $PATH setting, so java is first searched in /opt/IBM/ace- instead of standard /usr/bin/java.

You can check your path echo

echo $PATH

and compare output from root / non-root terminals. Then you would need to check where additional entry is added (common suspects are /etc/profile, ~/.bash_profile, ~/.bashrc, ~/.bash_login and ~/.profile)

[#1500] Monday, December 5, 2022, 11 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
3 Years ago
lintical questions
Thu, Jan 12, 23, 03:07, 9 Months ago
Mon, Jun 28, 21, 07:01, 2 Years ago
Sat, Aug 7, 21, 04:29, 2 Years ago