加载applet时未找到类异常(org.omg.CORBA.INITIALIZE:无法实例化默认ORB实现)

时间:2013-06-30 13:37:53

标签: java swing applet classnotfoundexception

我有一个applet,它通常在jre下的endorsed目录中使用jacorb.jar。现在我在代码中进行了更改以下载jacorb.jar tp windows temp文件夹(例如C:\ Users \ ADMINI~1 \ AppData \ Local \ Temp \ 2 \ endorsed)。使用我们本地安装的jre以及从我们用于从不同客户端启动到applet的网页下载的jar。但是在启动applet时我收到以下错误

org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation org.jacorb.orb.ORB  vmcid: 0x0  minor code: 0  completed: No
at org.omg.CORBA.ORB.create_impl(Unknown Source)
at org.omg.CORBA.ORB.init(Unknown Source)
at com.nm.util.OrbUtils.initAppletORB(OrbUtils.java:2)
at com.nm.ani.share.aniclient.AniClient.initializeORB(AniClient.java:2)
at com.nm.ani.share.aniclient.AniClient.initializeCorba(AniClient.java:33)
at com.nm.ani.share.aniclient.AniClient.initialize(AniClient.java:19)
at com.nm.ani.share.aniclient.AniClient.<init>(AniClient.java:10)
at com.nm.ani.clients.lib.ui.windows.CampusApplet.createA(CampusApplet.java:66)
at com.nm.ani.clients.lib.ui.windows.CampusApplet.getA(CampusApplet.java:68)
at com.nm.ani.clients.campus.main.CampusMain.performAniLogin(CampusMain.java:30)
at com.nm.ani.clients.campus.main.CampusMain.initia(CampusMain.java:6)
at com.nm.ani.clients.lib.ui.windows.CampusApplet.init(CampusApplet.java:17)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jacorb.orb.ORB
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source

后来我发现applet正在自己的目录中搜索jacorb文件。它不是在Windows临时目录中使用jar文件,其中新的jars从网页下载。

我已经将所有可能的代码更改为指向临时目录,但它没有发生

请指导我......

0 个答案:

没有答案