简体   繁体   English

如何在代码Java中从库Java导入Java类

[英]How import java class from library java in code java

For explain situation I was in Lotus Designer. 为了说明情况,我在Lotus Designer中。 I works with java class and I would like add code from java Library and I can't. 我使用Java类,但我想从Java库添加代码,但我不能。 My library are in the Script's Libraries but I can't import this class of my Library !! 我的库在脚本库中,但是我不能导入此类的库!

I don't understand !! 我不明白!

exemple : 例子:

Code => Script's Libraries => com.pasquier.utilitaire.UtiliRepertoire;
     => java's code => package com.pasquier.photoWeb.DAO;

package com.pasquier.photoWeb.DAO;

import com.pasquier.utilitaire.UtilRepertoire; <=   "import can not be resolved"

public class PhotoDAO {


}

Could you help me ? 你可以帮帮我吗 ?

Well it isn't possible to access the libraries from the code java. 好吧,不可能从代码java访问这些库。 We must copy the package in Library ANd in the code... 我们必须在代码中将包复制到Library ANd中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM