This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 130848 [details] Screenshot Build javaee7-60, Mac OS X 10.7.5 1. Create a Java EE 7 Maven web project => Project has a yellow warning triangle, saying "No such Java Platform: JDK_1.7" See the attached screenshot. At the same time, I am running the IDE on JDK 7, and in Java platform manager this JDK is listed as follows: Platform Name: JDK 1.7 (Default) Platform Folder: /Library/Java/JavaVirtualMachines/jdk1.7.0_11.jdk/Contents/Home
Could you attach the project? I'm not able to see the same results, so it's hard to say what could be the problem. Also, could you take a look at your Java Platforms and tell me what is the exact name of your Java 7 platform?
Ah sorry, didn't notice you've write the platform name in description.. forget second part of my comment 1 :)
Ha! I've found reproducible test case.. it seems that JDK 1.7 has to be registered as a default platform, otherwise it works correctly. I'll take a look at it..
The problem is that wizard generated this line in nb-configuration.xml: <netbeans.hint.jdkPlatform>JDK_1.7</netbeans.hint.jdkPlatform> ..which is not correct if the default platform is used. Removing the line fixes the problem, but still not sure why and where we generate this. I will continue with investigation..
Ok, I've found a quick fix (not 100% sure if this is a best way, but works in all cases I have tested and shouldn't be risky). web-main #55a6dd0855df
Integrated into 'main-golden', will be available in build *201302122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/55a6dd0855df User: Martin Janicek <mjanicek@netbeans.org> Log: #225551 - Warning about JDK 7 not found shown after creating Java EE 7 Maven web project
Martin, I am still able to reproduce this in the latest trunk build - any ideas?
Not sure now, I'll take a look at it once I finished the work on Java EE 7 samples.
web-main #f4ddb73ef62f
Integrated into 'main-golden', will be available in build *201304161616* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f4ddb73ef62f User: Martin Janicek <mjanicek@netbeans.org> Log: #225551 - Warning about JDK 7 not found shown after creating Java EE 7 Maven web project