VCF Automation Blog

from Stefan Schnell

Set JavaScript Access to Java Classes


To find a way to detect the Java version the following script can be used:
var javaVersion = java.lang.System.getProperty("java.version");
System.log(javaVersion);
However, the use of Java classes, other than java.util.*, is limited, they must be explicitly enabled. You can find a description how to set JavaScript access to Java classes here.

Hint: There was an error in the documentation that was corrected with release 8.11 on the 01.11.2023. The path was also specified here with /vco/usr/lib/vco/yourFileName. The vco path at the beginning was incorrect here.