Are JAR files in WebContent/WEB-INF/lib available to Java design elements in Domino Designer?

故事扮演 提交于 2019-12-17 20:37:28

问题


When using Domino Designer 8.5.3, I have a bunch of custom classes added using the Java design element. I want to use a 3rd party JAR in my custom classes in the same way you would when using external JARs in xPages SSJS, via Package Explorer:

WebContent-->WEB-INF-->lib

However my custom classes aren't picking the JAR up.

Is this a known limitation or have I got my configuration screwed up somewhere?


回答1:


They are after you do:

Project -> Properties -> Java Build Path -> Libraries -> Add JARS...

update:

Frantisek Kossuth tells us about a nice shortcut in his comment:

in Package Explorer view (Java perspective, or add this view to XPages/Domino Designer perspective), simply right click JAR file and use "Build Path/Add to Build Path" menu




回答2:


I had a similar problem (Accessing methods from imported jars in managed beans). It seems you need to import them in your machine/server's file system.



来源:https://stackoverflow.com/questions/14464827/are-jar-files-in-webcontent-web-inf-lib-available-to-java-design-elements-in-dom

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