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 236708 - Your active platform is: JDK_1.7_u40, but the corresponding property "platforms.JDK_1.7_u40.home" is not found in the project's properties files.
Summary: Your active platform is: JDK_1.7_u40, but the corresponding property "platfor...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-03 15:38 UTC by MackSix
Modified: 2014-01-18 04:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction. (145.01 KB, application/x-zip-compressed)
2013-10-03 15:38 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-10-03 15:38:42 UTC
Created attachment 140765 [details]
Project to use for reproduction.

1. Open attached project.
2. Project problem dialog will appear. Choose to Reslove Problems...
3. Click Resolve button.
4. Click Add Platform...
5. Browse to JDK1.7.0_40 and add it. Name it "JDK 1.7 u40".
6. Click Close. Notice error is resolved. Click Close again.
7. Choose to revert back to 0.
8. Commit, naming it "no error 2"
9. Revert back to 1.
10. Commit, naming it  "error 2"
7. Open project context menu and choose to  delete.
8. Check "Also delete sources under..."
9. Click Yes button.

RESULT IN OUTPUT WINDOW:

ant -f C:\\Users\\User06\\Projects\\NetBeans\\JavaFXApplication1 clean
C:\Users\User06\Projects\NetBeans\JavaFXApplication1\nbproject\build-impl.xml:87: The J2SE Platform is not correctly set up.
 Your active platform is: JDK_1.7_u40, but the corresponding property "platforms.JDK_1.7_u40.home" is not found in the project's properties files. 
 Either open the project in the IDE and setup the Platform with the same name or add it manually.
 For example like this:
     ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.JDK_1.7_u40.home" in a .properties file)
  or ant -Dplatforms.JDK_1.7_u40.home=<path_to_JDK_home> jar (where no properties file is used)
BUILD FAILED (total time: 0 seconds)

Product Version: NetBeans IDE 7.4 RC2 (Build 201309252201)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Milos Kleint 2014-01-16 14:02:23 UTC
one of the hg reverts deletes the nbproject/private folder with private.properties fiel that contains link to user.properties.file=C:\\Users\\mkleint\\AppData\\Roaming\\NetBeans\\dev\\build.properties

where the actual jdk definitions reside. closing+reopening the project regenerates the private folder with it's correct content in the current IDE.
Comment 2 Milos Kleint 2014-01-16 14:17:04 UTC
Unchecking "Remove newly added files and folders" in the mercurial revert dialog will preserve the nbproject/private folder content.


reassigning to mercurial support for evaluation, the private folder and it's content is marked as ignored
Comment 3 Ondrej Vrabec 2014-01-17 12:05:35 UTC
fixed: core-main #4a326de672ed
Comment 4 Quality Engineering 2014-01-18 04:51:01 UTC
Integrated into 'main-silver', will be available in build *201401180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4a326de672ed
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #236708 - Your active platform is: JDK_1.7_u40, but the corresponding property "platforms.JDK_1.7_u40.home" is not found in the project's properties files.
must exclude non sharable folders from the purge command so hg does not completely remove them