我遇到Netbeans的问题。我已经从http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz
安装了JAX-RPC Web服务但是,在安装插件后重启IDE后,Netbeans不会重新启动。
Netbeans的消息日志显示以下文本:
>Log Session: Wednesday, December 3, 2014 10:36:59 AM CST
>System Info:
Product Version = NetBeans IDE 7.4 (Build nbms-and-javadoc-2405-on-20141202) (#6523d6792981)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_67-b01
Java Home = C:\Program Files\Java\jdk1.7.0_67\jre
System Locale; Encoding = es_SV (nb); Cp1252
Home Directory = C:\Users\Ghost
Current Directory = C:\Program Files\NetBeans 7.4
User Directory = C:\Users\Ghost\AppData\Roaming\NetBeans\7.4
Cache Directory = C:\Users\Ghost\AppData\Local\NetBeans\Cache\7.4
-------------------------------------------------------------------------------
INFO [org.openide.util.lookup.MetaInfServicesLookup]: Cannot create class org.netbeans.core.startup.NbRepository
java.lang.NoSuchMethodError: org.netbeans.core.startup.layers.SystemFileSystem.setHidden(Z)V
at org.netbeans.core.startup.layers.SystemFileSystem.<init>(SystemFileSystem.java:121)
at org.netbeans.core.startup.layers.SystemFileSystem.create(SystemFileSystem.java:257)
at org.netbeans.core.startup.layers.SessionManager.create(SessionManager.java:99)
at org.netbeans.core.startup.NbRepository.createDefaultFileSystem(NbRepository.java:155)
at org.netbeans.core.startup.NbRepository.<init>(NbRepository.java:79)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at org.openide.util.lookup.implspi.SharedClassObjectBridge.newInstance(SharedClassObjectBridge.java:64)
[catch] at org.openide.util.lookup.MetaInfServicesLookup$Item.getInstance(MetaInfServicesLookup.java:516)
at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:422)
at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:222)
at org.openide.filesystems.Repository.getDefault(Repository.java:362)
at org.openide.filesystems.FileUtil.getConfigFile(FileUtil.java:2109)
at org.openide.filesystems.FileUtil.getConfigRoot(FileUtil.java:2139)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:170)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:745)
java.lang.ClassCastException: org.openide.filesystems.Repository$MainFS cannot be cast to org.netbeans.core.startup.layers.SystemFileSystem
at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.getUserModuleLayer(ModuleLayeredFileSystem.java:219)
at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:580)
at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:356)
at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:105)
at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:346)
at org.openide.filesystems.FileUtil$2.run(FileUtil.java:444)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:428)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:448)
at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:343)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1194)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1017)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:745)
任何人都知道如何解决此错误? 我需要使用这个插件,因为它需要我在工作中分配的项目。
感谢。
答案 0 :(得分:1)
这是一个解决方案(适用于NetBeans 8.0.2):
从以下网址下载列出的档案:
一旦你可以启动NetBeans而没有问题安装下载插件(工具&gt;插件&gt;下载&gt;添加插件...),它对我有用。 享受
答案 1 :(得分:0)
只需删除这两个文件夹中的所有文件:
C:\Users\Ghost\AppData\Roaming\NetBeans\7.4\
C:\Users\Ghost\AppData\Local\NetBeans\Cache\7.4\
尝试在Netbeans的Bugzilla中创建错误报告:https://netbeans.org/bugzilla/
答案 2 :(得分:-1)
问题可以归结为目录: NetBeans 8.0 \ platform \ core 将core.jar和org-openide-filesystems.jar库替换为http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz中的较小版本。 此外,NetBeans 8.0 \ platform \ lib中的库似乎已被替换。 NetBeans 8.0 \ platform \ modules \中的某些库也遭到破坏。 因此,恢复Netbeans的最佳方法是重新安装并按照Relativo的描述单独下载NBM。
对于Netbeans 8,此链接可用于下载NBM: http://deadlock.netbeans.org/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/extra/