Skip to Main Content

SQLcl: MCP Server & SQL Prompt

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!

sqlcl java errors under different db homes

Jeff ChircoApr 26 2017 — edited Apr 1 2019

I am running version 4.2.0 of SQLcl on my Linux machine and it works find when my Oracle Home is set to a 12.2 instance. But when I set it to a 12.1.0.2 instance I get the following errors. How come? How do I fix this?                                            

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

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.  Program will exit.

Comments

NickR2600-Oracle

Ha ha, I love how curious and thorough you are!  I'm certain the files are meta-data and scripts which tell NetBeans what files it needs, how they should be organized, and how to compile them.  I've tried messing around with them a few times in order to convert a Java SE 8 project to be a Java SE 9 Modular project.  But I had trouble figuring out all the places that needed changing.  Other than that, I haven't needed to dig too deeply into the role of each file, so I'm not sure which resources would be best.  I'll ask around.

NickR2600-Oracle

Hopefully I'll be able to reach one of the product managers to provide thoughts here on the forum.  In the meantime, they said the information on each file was google-able piece-wise and recommended this stackoverflow thread as an example: https://stackoverflow.com/questions/33772118/difference-between-build-xml-and-build-impl-xml

1 - 2

Post Details

Added on Apr 26 2017
10 comments
4,909 views