如何在多米诺设计器中修复 it class not found 异常? [英] How to fix it class not found exception in domino designer?
问题描述
这是我的代码,当我触发它显示错误
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()
错误是:Ls2j错误:抛出java.lang类找不到异常我已经尝试了在互联网上找到的所有内容,但是包名称仍然存在错误,没有包名称类路径或位置,但是以某种方式找不到它的类对我没有帮助.
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 me out of this.
推荐答案
将Java类放入Java类型的ScriptLibrary中
Put your Java class(es) into a ScriptLibrary of type Java
并用
Use "MyJavaLib"
在您的LotusScript代码中.
in your LotusScript code.
不幸的是,您不能只将Java类放入nsf的文件夹"Code/Java"中.此文件夹仅供XPages应用程序开发使用.
Unfortunately, you can't just put Java classes into nsf's folder "Code/Java". This folder is reserved for XPages application development only.
这篇关于如何在多米诺设计器中修复 it class not found 异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!