PureEngage On-Premises

 View Only

Sign Up

Java Platform SDK Sample problem (built using Maven)

  • 1.  Java Platform SDK Sample problem (built using Maven)

    Posted 07-21-2017 22:14
    Hi all,

    Had some challenges building the Java PSDK samples using Maven.  Finally got the tserver sample built.  When I execute it, I get this error:

    C:\Program Files\GCTI\Platform SDK for Java 8.5\samples\tserver\target>java -jar psdk-sample-tserver-853.2.6-jar-with-dependencies.jar
    Error: A JNI error has occurred, please check your installation and try again
    Exception in thread "main" java.lang.NoClassDefFoundError: com/genesyslab/platform/commons/log/ILoggerFactory

    I search the interwebs for Maven and JNI issues with no successful changes.  I did make sure that my POM file is using JDK 1.8 (currently installed).  The jar file does contain what looks to be a valid manifest file.  The log4j dependancies are contained within the jar as well.

    I'm using the Maven CLI (no IDE) version 3.5

    If you have had some success getting the Java samples running, I'd be willing to follow your setup.

    -- feel free to PM me, TIA, jay