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 248916 - Wrong netbeans.hint.jdkPlatform in generated nb-configuration.xml
Summary: Wrong netbeans.hint.jdkPlatform in generated nb-configuration.xml
Status: REOPENED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-26 10:02 UTC by terje7601
Modified: 2018-02-03 00:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-11-26 10:02:26 UTC
I have 2 Java Platforms:
JDK 1.7
JDK 1.8 (Default)

When I create a new Maven Web Application project, Netbeans gives a project problem: "No Such Java Platform: JDK 1.7"

The problem is that in the generated nb-configuration.xml, the value of netbeans.hint.jdkPlatform is "JDK 1.7", while it should be "JDK_1.7".

Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Tomas Mysik 2015-05-28 10:29:00 UTC
Maven issue? Please evaluate, thanks.
Comment 2 Martin Balin 2016-07-07 08:54:03 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 Alfatrion 2018-02-03 00:04:04 UTC
It still is relevant. I run 8.2 on FreeBSD.

There is no Java Platform with value "JDK_1.8" defined in the current IDE. The default platform is used instead. To fix, introduce a Java Platform with the given name or change the projects used Java Platform.