Xpages an issue with jar file

帅比萌擦擦* 提交于 2019-12-25 08:48:03

问题


I've created a "*.jar" file with Intellij IDEA and added to IBM Notes Domino 9 with Code -- Jars -- Import Jar. I can see my packages in classes which stored in "Code -- Java") but i have an error when i try to use my jar in xpages code:

I have a simple code on my test xpage:

importPackage(com.ibm.ibateam.sources);
var area = new Area("first");
getComponent("label1").setValue(area.getUnid());

but this code throws exception:

Script interpreter error, line=2, col=16: [ReferenceError] 'Area' not found
1: importPackage(com.ibm.ibateam.sources);
-> 2: var area = new Area("first");
3: getComponent("label1").setValue(area.getUnid());

I've tried everything with Java Build Path but nothing works.

I also tried use information from this link:

http://www.xpagetips.com/2012/06/extending-your-xpages-applications-with.html

but move to "WEB-INF/lib/..." didn't help

I know I can add my jar to "...Notes\jvm\lib\ext)" or to eclipse plugins but I don't like this solution because I want to store my jar in notes database.

来源:https://stackoverflow.com/questions/40373716/xpages-an-issue-with-jar-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!