s Steve
on

 

Hi,

I am trying to upgrade from v2.0.1 to v2.1 and we only use the CLI.  Been trying to get this to run but getting errors.

I even ran the help on the CLI jar file and received the following issues.  java -jar validator-cli-2.1.0.jar -help

Exception in thread "main" 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.

 

Can you please help with this as we want to upgrade but we also want to use the CLI.

Thanks,

Steve

Forums: SDTM

j Jozef
on April 1, 2016

Looks like an unsupported Java version. What is the Java version that you are using?
(You can find out with "java -version").

s Steve
on April 4, 2016

I am using Java version 1.6.0_24-b07.  I am using that same Java version for the v2.01 CLI.

j Jozef
on April 4, 2016

The release notes do not say anything about it, but it might be that Java 1.7 is required.
Also Oracle seems to have stopped support for 1.6.

Can you try using Java 1.7 or even 1.8?

s Steve
on April 4, 2016

Thank you XML4Pharma, that worked.  I have tried with version 1.7 and it worked.

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.