I am trying my hands on JavaObject class of OScript built-in packages, using following thread document to setup JOExample module:
Running Rolf Posers JoExample In Builder.docx:
https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objaction=overview&objid=17019239
The environment variables for java are point to followng location:
C:\Program Files\Java\jre1.8.0_65\bin
The JAR file is placed at following locations:
[OPENTEXT]\module\joexample_1_0_0\ojlib
[OPENTEXT]\ojlib
[OPENTEXT]\javaserver\lib
Also updated the [javaserver] section of opentext.ini with following details:
JavaVMOption_1=-Djava.class.path=.\javaserver\lib\HelloWorld.jar;.\javaserver\lib\startup.jar;.\javaserver\lib;.\ojlib\classloader.jar;.\ojlib\com.bwc.util.jar;.\ojlib\HelloWorld.jar
While running the HelloWorldTest eventscript under JOExample Root --> HelloWorld, I am getting following error message:
JavaObject_JavaObject exception: java.lang.NoClassDefFoundError: HelloWorld
JOEXAMPLE: Could not find the class definition.
This error message is not much helpful, please let me know if you have faced similar situation.