Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL Developer: jdk path to set and run on CentOS 7

SmithJohn45Oct 7 2021 — edited Oct 7 2021

hi all,
created a VM with CentOS 7 + DB 21c XE + Apex 21 + ORDS 21 + Tomcat 9
now installed latest SQL Developer
image.pngwhen run its asking for jdk path as below:
Valid default JDK not found
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /root/.sqldeveloper/21.2.1/product.conf
i copy pasted : /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/
but it says: Error: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/bin/java not found or not a valid JDK
go to /usr/lib/jvm, list the directory and checked for default java version, here is screenshot:
image.pngplease help to set default jdk path (JAVA_HOME) so it will not ask everytime.
all these activities perform with actual " root " user.
regards
note: when we install ORDS which requires JAVA there is no problem, it is running fine with what default java as is and for SQL Developer it failed to find default version ( mentioned above "Valid default JDK not found" ) when trying to run ./sqldeveloper.sh ?

This post has been answered by User_H3J7U on Oct 7 2021
Jump to Answer
Comments
Post Details
Added on Oct 7 2021
8 comments
4,404 views