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.

Bug 225551 - Warning about JDK 7 not found shown after creating Java EE 7 Maven web project
Summary: Warning about JDK 7 not found shown after creating Java EE 7 Maven web project
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-30 16:30 UTC by Petr Jiricka
Modified: 2013-04-16 18:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (82.65 KB, image/png)
2013-01-30 16:30 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-01-30 16:30:00 UTC
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
Comment 1 Martin Janicek 2013-01-31 09:12:42 UTC
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?
Comment 2 Martin Janicek 2013-01-31 09:13:39 UTC
Ah sorry, didn't notice you've write the platform name in description.. forget second part of my comment 1 :)
Comment 3 Martin Janicek 2013-01-31 09:25:09 UTC
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..
Comment 4 Martin Janicek 2013-02-04 13:41:52 UTC
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..
Comment 5 Martin Janicek 2013-02-04 15:06:31 UTC
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
Comment 6 Quality Engineering 2013-02-13 01:52:30 UTC
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
Comment 7 Petr Jiricka 2013-04-15 09:09:38 UTC
Martin, I am still able to reproduce this in the latest trunk build - any ideas?
Comment 8 Martin Janicek 2013-04-16 07:14:22 UTC
Not sure now, I'll take a look at it once I finished the work on Java EE 7 samples.
Comment 9 Martin Janicek 2013-04-16 10:02:41 UTC
web-main #f4ddb73ef62f
Comment 10 Quality Engineering 2013-04-16 18:41:52 UTC
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