将netbeans导入eclipse

use*_*629 0 java eclipse netbeans

昨天我将我的应用程序从netbeans导入到eclipse中,但是我与数据库的连接出错了.

import com.sun.crypto.provider.RSACipher; 
Run Code Online (Sandbox Code Playgroud)

它说:

Access restriction: The type RSACipher is not accessible due to restriction on required library
Run Code Online (Sandbox Code Playgroud)

这个导入在netbeans之前运行良好,但是我无法在eclipse上解决它,任何人都可以帮助我吗?

Alf*_*avo 5

您在类路径中缺少JAR(sunjce_provider.jar).当然它有Netbeans,但是Eclipse并不知道它

http://www.jarfinder.com/index.php/java/info/com.sun.crypto.provider.SunJCE