LINQ Newbee LINQ Newbee - 4 months ago 95
Java Question

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. however, after updating from cvs this error pops up. Cannot run program "${platforms.default_platform.home}\bin\java" (in directory "E:\ws2\project"): CreateProcess error=2, The system cannot find the file specified

I'm sure I pointed java/bin in the system environment variable.

Am I missing a setting?



I had a similar problem after updating Netbeans recently.

I was able to get it working by re-adding Java 1.7 in the platforms configuration of NetBeans.

I'm using 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. Select new Platform in Properties window and select "ok".

Hope this helps someone.