Skip to content

trying pygcam with GCAM6: error while init confg file #36

@amnmalik

Description

@amnmalik

Hi Richard,
I know the readme file says that you haven't tested pygcam with GCAM 6.0 but I thought to have a go at it anyway. I successfully installed pygcam as explained nicely in your docs, however when I try to initialize the configuration file, I get the following error:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: joptsimple/OptionException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: joptsimple.OptionException
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)
... 7 more
gt failed: Cannot get java home dir: Command 'java -cp "C:/Users/Aman/GCAM/gcam-v5.1.3/libs/jars/*;C:/Users/Aman/GCAM/gcam-v5.1.3/output/modelinterface/ModelInterface.jar;XMLDBDriver.jar" XMLDBDriver --print-java-home' returned non-zero exit status 1.

Could you help in addressing this issue? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions