Hi,
I got some info from this link on using java object to call webservice. https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objId=31818675&objAction=viewincontainer&ShowReplyEntry=34062883#forum_topic_34062883
However the .jar that needs to be compiled from my java file is not working. I have compiled using 1.6.0.45 version, but still doesnt work. The example jar file is compiled using 1.6.0.13 version which is outdated and my processor doesnt even allow me to install it. Looks like I have reached a dead end.
Please help! Thanks in advance.
Swathi
The JRE that CS uses is found in OTHome\jre\bin. In CS10.5, this JRE is 1.7_045 (at least the U201506) update. CS 10.0 appears to be using Java 1.6. If the java version is the root cause of your problem (you should be seeing some error indicating the source of the trouble), you could try building the JAR with an IDE like Eclipse and specifying the version compatibility you want (in the project settings).
-Hugh Ferguson
I just remembered something that may be helpful. It may not be enough to compile your class with a low enough version of JDK, but if you create your jar file with a later version of the JDK, that may cause the problem you're experiencing. I recall this happening to me once.
-Hugh
I need to correct that last statement. The version of jar is irrelevant, it's only the version of the compiler that matters. And I did manage to confirm (I need to do my own JavaObject tests) that if you have JDK 1.8 but use Eclipse (or ant) to compile as a Java 6 (i.e. JDK1.6_x) app, then use the JDK 1.8's jar util, CS 10.0 U201506 will be able to execute methods. I have noticed a few issues, which will be a discussion of a thread in the Oscript Developer forum.