javax.swing.JPanel 的 main() 中发生异常java.lang.Error: Unresolved compilation problems:
The import netscape cannot be resolved
JSObject cannot be resolved
at nc.ui.sm.login.AppletContainer.(AppletContainer.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
解决方案:
1、确定netscape.javascript.JSObject没问题
2、查看nc.ui.sm.login.AppletContainer的问题
1)找到nc.ui.sm.login.AppletContainer的源码加入到当前项目源代码中
如无源码,可找到nchome的class反编译获得。
2)重新debug客户端启动试一下
此错误不再出现,但启动依然失败,报新的错误。
参见:
NC57启动失败: client and server vid is same
NC57启动失败:AppletContainer.int出错
2016.12.21开发环境:eclipse3.8+jre1.5+win7x64
业务环境:NC5.7
主要问题:NC5.7启动失败
问题描述:
需解NC5.7bug,拷贝了一个NC5.7标准环境下来欲debug启动客户端,eclipse的console报错如下: