我在 netbeans 中运行 Web 项目时收到此错误
ERROR - Ant is misconfigured and cannot be run.
java.lang.NoSuchMethodError: org.openide.util.RequestProcessor.<init>(Ljava/lang/Class;)V
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.<clinit>(BridgeImpl.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:321)
at org.apache.tools.ant.module.bridge.AntBridge.getAntInstance(AntBridge.java:274)
at org.apache.tools.ant.module.bridge.AntBridge.getInterface(AntBridge.java:263)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
我尝试了很多方法但无法解决...任何人都可以给我建议吗 提前致谢
ERROR - Ant is misconfigured and cannot be run.
java.lang.NoSuchMethodError: org.openide.util.RequestProcessor.<init>(Ljava/lang/Class;)V
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.<clinit>(BridgeImpl.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:321)
at org.apache.tools.ant.module.bridge.AntBridge.getAntInstance(AntBridge.java:274)
at org.apache.tools.ant.module.bridge.AntBridge.getInterface(AntBridge.java:263)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
I tried to find out many ways but was not able to solve...Can any one give me suggession
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Netbeans 论坛上有一个关于此问题的 主题。我看起来像是 Netbeans 和某些版本的 Subversion 之间存在兼容性问题。
There is a thread on the Netbeans forums about this. I looks like a compatibility isue between Netbeans and certain versions of Subversion.