Question

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.

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

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

Am I missing a setting?

Thanks

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top