简体   繁体   English

Java-netbeans:无法运行程序“ $ {platforms.default_platform.home} \\ bin \\ java

[英]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.

相关问题 您的活动平台是:default_platform,但未找到相应的属性“platforms.default_platform.home” - Your active platform is: default_platform, but the corresponding property "platforms.default_platform.home" is not found Java-netbeans 8.1:无法识别的文件? - Java-netbeans 8.1: Unrecognized file? 在Java-NetBeans中动态创建dcheckbox - Creating dcheckbox dynamically in Java-NetBeans 向initComponents添加参数的其他方法[java-netbeans] - Other ways to add a parameter to initComponents [java-netbeans] 如何将文本框中的数据插入到Java-netbeans中的mysql数据库中 - how to insert data from textboxes into mysql database in java-netbeans 计时器循环可不断循环一系列图像[Java-NetBeans] - Timer loop to constantly loop series of images [Java-NetBeans] 使用 java.netbeans 在电报机器人上发送粗体文本 - send bold text on telegram bot with java-netbeans 如何在两个平台上运行Java程序? - how to run java program in both platforms? $ {platforms.JDK_1.6.home} / bin / java“:java.io.IOException:error = 2 - ${platforms.JDK_1.6.home}/bin/java": java.io.IOException: error=2 如何以独立于平台的方式在 netbeans 中的 Java 框架内运行外部程序? - How do I run an external program inside a Java frame in netbeans in a platform independent manner?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM