我正在尝试使用Netbeans安装Ardor3D(3D Java引擎),但我遇到了一些问题。我成功下载并安装了所有源代码,它在IDE中显示正常,但是当我尝试运行任何示例时,它会出现此错误:
[exec:exec]
Error: Could not find or load main class null
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 5:35.229s
Finished at: Mon Jul 29 15:23:20 EDT 2013
Final Memory: 7M/18M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec (default-cli) on project ardor3d-examples: Result of cmd.exe /X /C "java -classpath G:\Files\Java\Projects\Ardor3D\ardor3d-examples\target\classes;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-lwjgl\1.0-SNAPSHOT\ardor3d-lwjgl-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-core\1.0-SNAPSHOT\ardor3d-core-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-math\1.0-SNAPSHOT\ardor3d-math-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-savable\1.0-SNAPSHOT\ardor3d-savable-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\google\guava\guava\14.0.1\guava-14.0.1.jar;C:\Users\Idrees\.m2\repository\org\lwjgl\lwjgl\lwjgl_util\2.8.4\lwjgl_util-2.8.4.jar;C:\Users\Idrees\.m2\repository\org\lwjgl\lwjgl\lwjgl\2.8.4\lwjgl-2.8.4.jar;C:\Users\Idrees\.m2\repository\org\lwjgl\lwjgl\lwjgl-platform\2.8.4\lwjgl-platform-2.8.4-natives-windows.jar;C:\Users\Idrees\.m2\repository\org\lwjgl\lwjgl\lwjgl-platform\2.8.4\lwjgl-platform-2.8.4-natives-linux.jar;C:\Users\Idrees\.m2\repository\org\lwjgl\lwjgl\lwjgl-platform\2.8.4\lwjg l-platform-2.8.4-natives-osx.jar;C:\Users\Idrees\.m2\repository\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Idrees\.m2\repository\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-awt\1.0-SNAPSHOT\ardor3d-awt-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-swt\1.0-SNAPSHOT\ardor3d-swt-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\org\eclipse\swt\swt\3650\swt-3650-win32-x86.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-jogl\1.0-SNAPSHOT\ardor3d-jogl-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt-main\2.0.2-rc12\gluegen-rt-main-2.0.2-rc12.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-android-armv6.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-linux-amd64 .jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-linux-armv6.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-linux-armv6hf.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-linux-i586.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-macosx-universal.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-solaris-amd64.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-solaris-i586.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-windows-amd64.jar;C:\Users\Idrees\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.0.2-rc12\gluegen-rt-2.0.2-rc12-natives-windows-i586.jar;C:\Users\Idrees\.m2\repository\org\jo gamp\jogl\jogl-all-main\2.0.2-rc12\jogl-all-main-2.0.2-rc12.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-android-armv6.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-linux-amd64.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-linux-armv6.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-linux-armv6hf.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-linux-i586.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-macosx-universal.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-solaris-amd64.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\ 2.0.2-rc12\jogl-all-2.0.2-rc12-natives-solaris-i586.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-windows-amd64.jar;C:\Users\Idrees\.m2\repository\org\jogamp\jogl\jogl-all\2.0.2-rc12\jogl-all-2.0.2-rc12-natives-windows-i586.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-effects\1.0-SNAPSHOT\ardor3d-effects-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-extras\1.0-SNAPSHOT\ardor3d-extras-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-collada\1.0-SNAPSHOT\ardor3d-collada-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-animation\1.0-SNAPSHOT\ardor3d-animation-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\org\jdom\jdom2\2.0.4\jdom2-2.0.4.jar;C:\Users\Idrees\.m2\repository\jaxen\jaxen\1.1.4\jaxen-1.1.4.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-terrain\1.0-SNAPSHOT\ardor3d-terrain-1.0-SNAPSHOT.jar;C:\Users\Idrees\.m2\repository\com\ardor3d\ardor3d-ui\1.0 -SNAPSHOT\ardor3d-ui-1.0-SNAPSHOT.jar null" execution is: '1'. -> [Help 1]
我认为这个错误是由于我在可移植版Netbeans上运行Ardor这一事实造成的。它发现Java类路径很好,但它试图在计算机文件本身中找到SNAPSHOT(?)。有谁知道如何下载和定位flashdrive本身的文件?我可以假设它可以通过重定向IDE查找存储库的位置来修复,但由于我对该主题缺乏了解,我不知道如何实现这一点。谢谢你的帮助!
P.S。如果您需要我上传Netbeans便携式设备以进行纠错,请说明
答案 0 :(得分:0)
好的,事实证明答案实际上是我的问题(主要是愚蠢)。要解决此问题,您必须使用“示例运行器”(duh),而不是从示例本身运行示例。出于某种原因,它不起作用......