# CLI Validator in 2.1.2?

**URL:** <https://forum.certara.com/t/cli-validator-in-2-1-2/976>\
**Category:** Troubleshooting and Problems\
**Created:** [August 2, 2016, 7:58pm UTC](https://forum.certara.com/t/cli-validator-in-2-1-2/976 "2016-08-02T19:58:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![XML4Pharma](https://avatars.discourse-cdn.com/v4/letter/x/b2d939/32.png) [@XML4Pharma](https://forum.certara.com/u/XML4Pharma)\
**Post date:** [August 4, 2016, 12:07pm UTC](https://forum.certara.com/t/cli-validator-in-2-1-2/976/1 "2016-08-04T12:07:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![scocca](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@scocca](https://forum.certara.com/u/scocca)\
**Post date:** [August 10, 2016, 2:44pm UTC](https://forum.certara.com/t/cli-validator-in-2-1-2/976/2 "2016-08-10T14:44:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![scocca](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@scocca](https://forum.certara.com/u/scocca)\
**Post date:** [August 2, 2016, 7:58pm UTC](https://forum.certara.com/t/cli-validator-in-2-1-2/976/3 "2016-08-02T19:58:40Z")

</div>

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?
