当我只是清理和构建时,我没有收到任何错误,我可以毫无问题地运行 *.java 文件。但是当我点击运行项目时(带有绿色三角形的按钮)。构建项目后,我在下面收到此错误消息。
init:
Deleting: /home/danny/NetBeansProjects/Home Security Survelliance Server/build/built-jar.properties
deps-jar:
Updating property file: /home/danny/NetBeansProjects/Home Security Survelliance Server/build/built-jar.properties
compile:
Copy libraries to /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib.
Building jar: /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/Home_Security_Survelliance_Server.jar
To run this application from the command line without Ant, try:
javaws "/home/danny/NetBeansProjects/Home Security Survelliance Server/dist/launch.jnlp"
jnlp:
sign-jars:
Signing JAR: /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/Home_Security_Survelliance_Server.jar to /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/Home_Security_Survelliance_Server.jar as selfsigned
Signing JAR: /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib/javacpp.jar to /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib/javacpp.jar as selfsigned
Signing JAR: /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib/javacv-linux-x86_64.jar to /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib/javacv-linux-x86_64.jar as selfsigned
Signing JAR: /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib/javacv.jar to /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/lib/javacv.jar as selfsigned
generate-jnlp:
Copying 1 file to /home/danny/NetBeansProjects/Home Security Survelliance Server/dist
Deleting: /home/danny/NetBeansProjects/Home Security Survelliance Server/dist/launch.jnlp_
generate-html-preview:
jar:
jws-run:
/home/danny/NetBeansProjects/Home Security Survelliance Server/nbproject/jnlp-impl.xml:355: Execute failed:
java.io.IOException: Cannot run program "/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws" (in directory "/home/danny/NetBeansProjects/Home Security Survelliance Server"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 22 more
BUILD FAILED (total time: 10 seconds)
我究竟做错了什么?我在罐子上签错了吗?