ls2j

How to fix it class not found exception in domino designer?

冷暖自知 提交于 2021-01-28 19:34:59
问题 here is my code when I trigger it it shows an error Dim jSession As New JavaSession Dim jClass As JavaClass Dim jObject As JavaObject Set jClass = jSession.Getclass("learn/MyClass") Set jObject = jClass.CreateObject Call jObject.myMethod() The error is : Ls2j error : Threw java.lang class not found exeption I have tried everything which I found on internet but error is still there with package name without package name class path or loaction but somehow its not finding the class kindly help

How to fix it class not found exception in domino designer?

喜你入骨 提交于 2021-01-28 19:22:40
问题 here is my code when I trigger it it shows an error Dim jSession As New JavaSession Dim jClass As JavaClass Dim jObject As JavaObject Set jClass = jSession.Getclass("learn/MyClass") Set jObject = jClass.CreateObject Call jObject.myMethod() The error is : Ls2j error : Threw java.lang class not found exeption I have tried everything which I found on internet but error is still there with package name without package name class path or loaction but somehow its not finding the class kindly help

Invoking method on a Java class from lotus script (LS2J)

徘徊边缘 提交于 2020-01-03 10:05:11
问题 Most dignified developers, I'm having trouble invoking a method on my own java class from a lotus script agent. My Java class simplified looks like this import lotus.domino.*; public class MyClass{ /* .. omitted constructor and other methods .. */ public void myMethod(Document doc){ /* ... do things with the document object ...*/ } } Now this class is included with the proper use statement, and I can iterate over the classmethods on the class object in lotus script to get the signature of the

passing LotusScript parameter to Java

瘦欲@ 提交于 2019-12-24 01:43:32
问题 I am calling a a java getHTML( urlToRead ) class from LotusScript (thank you, Matt Holthe), which uses a CONST to pass the URL. The java code sits in a java "script-library". When I change the constant urlToRead to a variable, the java class does not read the variable and I get an empty response. Do I need to use in-memory documents, or is there an easier way? I need to get a return json value so a "call" does not work unless I'm using in-memory documents, which I am trying to avoid. I am