runnnig JDeveloper 10.1.3.4时出错:java.lang.NoClassDefFoundError

时间:2013-08-28 00:08:41

标签: java oracle oracle11g oracle10g jdeveloper

我们正在从JDeveloper版本 10.1.3.1 迁移到 10.1.3.4 。我们将JDeveloper 10.1.3.4解压缩到 C:/ jdeveloper 。但是,在启动时,我们遇到以下错误:

C:\jdeveloper\jdev\bin>jdev
java.lang.NoClassDefFoundError: oracle/xml/parser/v2/DTD
        at oracle.ide.marshal.xml.Object2Dom.$init$(Object2Dom.java:1512)
        at oracle.ide.marshal.xml.Object2Dom.<init>(Object2Dom.java:107)
        at oracle.ide.marshal.xml.Object2Dom.newInstance(Object2Dom.java:121)
        at oracle.ide.config.IdeSettings.load(IdeSettings.java:366)
        at oracle.ide.IdeCore.loadIdeSettings(IdeCore.java:1304)
        at oracle.ide.IdeCore.getSettings(IdeCore.java:377)
        at oracle.ide.Ide.getSettings(Ide.java:308)
        at oracle.ide.config.ClientSetting.findOrCreate(ClientSetting.java:292)
        at oracle.ideimpl.extension.ExtensionManagerImpl$ExtensionSet.load(Exten
sionManagerImpl.java:1208)
        at oracle.ideimpl.extension.ExtensionManagerImpl.isExtensionEnabled(Exte
nsionManagerImpl.java:1066)
        at javax.ide.extension.ExtensionRegistry$1.isExtensionEnabled(Unknown So
urce)
        at javax.ide.extension.spi.DependencyTree.buildTree(Unknown Source)
        at javax.ide.extension.ExtensionRegistry.loadExtensions(Unknown Source)
        at javax.ide.extension.ExtensionRegistry.initialize(Unknown Source)
        at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionMan
agerImpl.java:763)
        at javax.ide.Service.getService(Unknown Source)
        at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(Unknown So
urce)
        at oracle.ide.ExtensionRegistry.getOracleRegistry(ExtensionRegistry.java
:81)
        at oracle.ide.IdeCore.startupImpl(IdeCore.java:1049)
        at oracle.ide.Ide.startup(Ide.java:674)
        at oracle.ideimpl.Main.start(Main.java:49)
        at oracle.ideimpl.Main.main(Main.java:25

之前有人遇到过同样的错误吗?

1 个答案:

答案 0 :(得分:0)

我通过在JDeveloper安装中添加一个lib目录来解决问题。例如: C:/ JDeveloper10133 /的 LIB

然后我在lib目录中添加了缺少的jar文件(xmlparserv2.jar),例如:

C:/JDeveloper101.3.3/lib/的 xmlparserv2.jar