Skip to Main Content

SQLcl

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sqlcl 18.4 unsupported major.minor number 52.0

daniel_haukeJan 28 2019 — edited Aug 30 2019

Hi everybody,

i downloaded tht sqlcl version 18.4. When i try to start the sql command i get the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/dbtools/raptor/scriptrunner/cmdline/SqlCli : Unsupported major.minor version 52.0

I know that this error is due to different version of java in our os and ORACLE_HOME. For some reason this version prefers the java from our ORACLE_HOME and not the java which is set in our PATH Variable.

Even if i set the $JAVA_HOME/bin at the beginning of our PATH the error occurs. I didn't get this error with the sqlcl 18.2.

The only way i found out is to unset our ORACLE_HOME. Then the  JAVA_HOME Variable is taken by the tool and i am able to start the sqlcl.

But unseting our ORACLE_HOME is not really an alternative for me.

So can anyone perhaps provide me a different workaround? Is it possible to tell sqlcl which java the tool should use to start?

Any tipp is appreciated!

Greetings Daniel

Comments

Post Details

Added on Jan 28 2019
9 comments
3,354 views