我有这样的代码,
import javapasswordsdk.PSDKPassword;
import javapasswordsdk.PSDKPasswordRequest;
import javapasswordsdk.exceptions.PSDKException;
etc.............
我遇到错误,它正在使用 javapasswordsdk.PSDKPassword; javapasswordsdk.PSDKPasswordRequest 但不接受 javapasswordsdk.exceptions.PSDKException
所有这些类都在一个 jar 文件中。我的问题是为什么它会采取其他方式。
请尽快澄清。
Exception in thread "main" java.lang.NoClassDefFoundError:javapasswordsdk/exceptions/PSDKException
at beans.MigrateData.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javapasswordsdk.exceptions.PSDKException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more