[英]Java-netbeans: Cannot run program "${platforms.default_platform.home}\bin\java
I'm working from CVS via netbeans on windows 7, a week ago, I was able to compile and run my Java web application. 一周前,我正在通过Windows 7上的netbeans通过CVS工作,我能够编译并运行Java Web应用程序。 however, after updating from cvs this error pops up.
但是,从cvs更新后,会弹出此错误。
java.io.IOException: Cannot run program "${platforms.default_platform.home}\\bin\\java" (in directory "E:\\ws2\\project"): CreateProcess error=2, The system cannot find the file specified java.io.IOException:无法运行程序“ $ {platforms.default_platform.home} \\ bin \\ java”(在目录“ E:\\ ws2 \\ project”中):CreateProcess error = 2,系统找不到指定的文件
I'm sure I pointed java/bin in the system environment variable. 我确定我在系统环境变量中指向了java / bin。
Am I missing a setting? 我是否缺少设置?
Thanks 谢谢
I had a similar problem after updating Netbeans recently. 最近更新Netbeans之后,我遇到了类似的问题。
I was able to get it working by re-adding Java 1.7 in the platforms configuration of NetBeans. 通过在NetBeans的平台配置中重新添加Java 1.7,我能够使它正常工作。
I'm using NetBeans 7.4. 我正在使用NetBeans 7.4。
(Right click on project) > Properties > Libraries Category > Manage Platforms Button Add Platform pointing to Java 1.7 or 1.6 JDK as desired. (右键单击项目)>属性>库类别>管理平台按钮添加所需的指向Java 1.7或1.6 JDK的平台。 Select new Platform in Properties window and select "ok".
在“属性”窗口中选择新平台,然后选择“确定”。
Hope this helps someone. 希望这对某人有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.