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!

sqlcl java error on startup..setup question

Thomas OwensFeb 4 2015 — edited Feb 5 2015

Hello all,

Appreciate all that is going into making a better equipped sql*plus type of tool.  I was trying to get sqlcl to work today for the first time, and it appears I'm hitting an immediate road block which appears to be related to my windows java situation.  Here is the error in question:

C:\oracle\sqlcl\bin>sql -optl

Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/dbtools/raptor/scriptrunner/cmdline/SqlCli (Un

supported major.minor version 51.0)

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

        at java.lang.ClassLoader.defineClass(Unknown Source)

        at java.security.SecureClassLoader.defineClass(Unknown Source)

        at java.net.URLClassLoader.defineClass(Unknown Source)

        at java.net.URLClassLoader.access$100(Unknown Source)

        at java.net.URLClassLoader$1.run(Unknown Source)

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

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\oracle\sqlcl\bin>

Do you have any suggestions on how to correct this so that I can move forward?  Do I need to fiddle with sql.bat to identify the java_home?  if so, do you have an example?

Thanks in advance for any assistance provided.

Tom

This post has been answered by Thomas Owens on Feb 5 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2015
Added on Feb 4 2015
7 comments
2,043 views