You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to compile GCAMv5.4. However, I get a runtime error: SEVERE ERROR:Failed to find Java class XMLDBDriver to write to the XML database.
A core dump and an error log file are generated on my system. The logfile specifies the java_class_path begins with XMLDBDriver.jar, then all the jars in libs/jars, then ../output/modelinterface/ModelInterface.jar. However, XMLDBDriver.jar exists in my exe directory, and all the jars appear to be specified correctly. I recompiled XMLDBDriver.jar successfully, but got the same error.
I traced where the classpath is set to the createContainer method in cvs/objects/reporting/source/xml_db_outputter.cpp. The part of createContainer where the classpath is set does not appear to have changed from v5.2, but I do not have this problem running v5.2.
Thanks for any assistance resolving this issue!
The text was updated successfully, but these errors were encountered:
I figured out the issue.
In previous versions of GCAM, I had modified cvs/objects/build/linux/configure.gcam, setting the needed environment variables for BOOST, XERCES, JARS_LIB, etc. In following the build instructions for v5.4, I saw that the intended way to do this is to leave configure.gcam unedited and instead set those environment variables prior to invoking make.
For traceability I wanted to put this into a script. I usually use csh, and this is where the problem crept in. setenv JARS_LIB ${GCAM_HOME}/libs/jars/* resulted in the wildcard expansion happening prior to compilation, so that -DJARS_LIB was a long string of space-separated individual jar files.
Changing the above line to setenv JARS_LIB "${GCAM_HOME/libs/jars/*" solved the problem.
Using bash also solves the problem, and maybe that's the real answer.
Great, I am glad you were able to figure it out. I was going to chime in that between GCAM 5.2 and 5.4 we upgraded the BaseX library version from 8.6.7 to 9.5.x and perhaps that was the source of your issue. It seems this was not the issue in your case however.
I am able to compile GCAMv5.4. However, I get a runtime error:
SEVERE ERROR:Failed to find Java class XMLDBDriver to write to the XML database.
A core dump and an error log file are generated on my system. The logfile specifies the
java_class_path
begins with XMLDBDriver.jar, then all the jars in libs/jars, then ../output/modelinterface/ModelInterface.jar. However, XMLDBDriver.jar exists in my exe directory, and all the jars appear to be specified correctly. I recompiled XMLDBDriver.jar successfully, but got the same error.I traced where the classpath is set to the createContainer method in cvs/objects/reporting/source/xml_db_outputter.cpp. The part of createContainer where the classpath is set does not appear to have changed from v5.2, but I do not have this problem running v5.2.
Thanks for any assistance resolving this issue!
The text was updated successfully, but these errors were encountered: