Updated java dependencies
Since there will be a new release soon, I've gathered updated java dependencies (see below). However, when I try to build pulse with these dependencies and the updated cmake file below, I get these errors:
4>------ Build started: Project: PulseData, Configuration: Release x64 ------
4>-- Found Java: C:/Program Files/Eclipse Adoptium/jdk-11.0.17.8-hotspot/bin/java.exe (found version "11.0.17")
4>-- Using JAVA_HOME as my Java executable (set to : C:/Program Files/Eclipse Adoptium/jdk-11.0.17.8-hotspot)
4>EXEC : error : Unable to initialize main class com.kitware.pulse.dataset.DataSetReader
4>Caused by: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Row
4>EXEC : error : Unable to initialize main class com.kitware.pulse.dataset.ValidationDataSetReader
4>Caused by: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Row
4>-- Found Java: C:/Program Files/Eclipse Adoptium/jdk-11.0.17.8-hotspot/bin/java.exe (found version "11.0.17")
4>-- Using JAVA_HOME as my Java executable (set to : C:/Program Files/Eclipse Adoptium/jdk-11.0.17.8-hotspot)
4>[INFO] Loading native library : PulseJNI
4>[ERROR] verification_dir set to invalid directory C:/Users/bob.marinier/git/isaac/pulse-engine/build/install/bin/verification, ignoring and using default (./)
4>[WARN] Unknown directive : NoPlot
4>[WARN] Cannot find files, ./patients is not a directory
4>[INFO] I can run 12 threads, I am going to use 11
4>Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder
4> at com.google.protobuf.util.JsonFormat$PrinterImpl$GsonHolder.<clinit>(JsonFormat.java:725)
4> at com.google.protobuf.util.JsonFormat$PrinterImpl.<init>(JsonFormat.java:745)
4> at com.google.protobuf.util.JsonFormat$Printer.appendTo(JsonFormat.java:358)
4> at com.google.protobuf.util.JsonFormat$Printer.print(JsonFormat.java:378)
4> at com.kitware.pulse.cdm.testing.SETestReport.writeFile(SETestReport.java:123)
4> at com.kitware.pulse.cdm.testing.SETestReport.write(SETestReport.java:190)
4> at com.kitware.pulse.cdm.testing.SETestReport.write(SETestReport.java:183)
4> at com.kitware.pulse.cdm.testing.SETestDriver.createReport(SETestDriver.java:380)
4> at com.kitware.pulse.cdm.testing.SETestDriver.test(SETestDriver.java:145)
4> at com.kitware.pulse.cdm.testing.SETestDriver.main(SETestDriver.java:44)
4>Caused by: java.lang.ClassNotFoundException: com.google.gson.GsonBuilder
4> at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
4> at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
4> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
4> ... 10 more
I checked the jars and the classes it's complaining about are definitely in the jar dependencies. Maybe I have to update another cmake file somewhere to make sure they end up on the classpath when this runs?
I'm building on Windows 10 with Visual Studio 2019. I tried with both Java 8 and 11.
This is all of the dependencies, some of which have not changed versions:
error_prone_annotations-2.11.0.jar
java-ordered-properties-1.0.4.jar
And here is the corresponding updated cmake file: