I have a question regarding a Blackduck scan. It only runs until the signature scan and then exits with the exit code 1 & throws the following error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/blackducksoftware/scan/cli/wrapper/ScanCliWrapper has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(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.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 sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
The signature scanner memory is set to 256 and I am using JRE8 which is declared in the java_home and path variables (.bin in jre folder) as well.
This is the code to execute the scan:
C:\Program Files (x86)\Java\jre8\bin\java" -jar "$dir_path/synopsys-detect-7.14.0.jar" --detect.project.name=<Project-Name> --detect.project.version.name=test_version --blackduck.trust.cert=true --logging.level.com.synopsys.integration=DEBUG --detect.cleanup=false --detect.blackduck.signature.scanner.memory=256 -de #--detect.detector.search.depth=3
Does anyone have an idea on how I can solve this? Is jre8 wrong? Or is something wrong with the scanner memory?
I'd appreciate your help :)