d Dave
on

 

Trying to invoke the CLI validator in Pinnacle 21 Community v2.1.2, and I'm getting the same sort of errors I was getting previously:

java.lang.UnsupportedClassVersionError: org/opencdisc/validator/cli/Main : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    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$000(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)
Could not find the main class: org.opencdisc.validator.cli.Main. Program will exit.
Picked up JAVA_TOOL_OPTIONS: -Djdk.lang.Process.allowAmbigousCommands=true
Exception in thread "main"

Is there any known work-around?  Is the CLI validator no longer a supported tool?

 

 

Forums: Troubleshooting and Problems

j Jozef
on August 4, 2016

Dear Dave,

what is the Java version on your machine? You can use "java -version" to find out.
The error is typical for the case that the software has been compiled with a later version of Java than the one you are trying to execute it with.
What do the release notes say about the minimal Java version required?

Best regards,
Jozef

d Dave
on August 10, 2016

Thanks, Jozef!  It turns out that is in fact the issue.  I'm re-writing our batch/CLI scripts to use the java.exe that comes with Pinnacle 21 Community, and that should solve it.

 

 

Want a demo?

Let’s Talk.

We're eager to share and ready to listen.

Cookie Policy

Pinnacle 21 uses cookies to make our site easier for you to use. By continuing to use this website, you agree to our use of cookies. For more info visit our Privacy Policy.