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 205325 - Unable to set Platform in NetBeans Platform Module
Summary: Unable to set Platform in NetBeans Platform Module
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-20 14:47 UTC by locked
Modified: 2011-11-21 19:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot about invalid platform with disabled buttons (49.21 KB, image/png)
2011-11-20 14:47 UTC, locked
Details
My Plaform config (31.06 KB, image/png)
2011-11-21 18:44 UTC, locked
Details

Note You need to log in before you can comment on or make changes to this bug.
Description locked 2011-11-20 14:47:33 UTC
Created attachment 113345 [details]
Screenshot about invalid platform with disabled buttons

I downloaded the code from the NetBeans7 book at 
http://www.galileocomputing.de/katalog/buecher/titel/gp/titelID-2620
and tried to compile the demo modules.

Actually I cannot compile most of the modules and get the following error in the Output window:
C:\Users\Franz\Downloads\NetBeans Buch\Beispiele\05\MP3 Manager\build.xml:7: The following error occurred while executing this line:
C:\Users\Franz\Downloads\NetBeans Buch\Beispiele\05\MP3 Manager\nbproject\build-impl.xml:19: You must define 'nbplatform.default.harness.dir'

When checking the project properties > Libraries
I see that an invalid Platform seems to be selected (see attached screenshot).
I guess this is the original source of the problem. 
Unfortunately I just see THAT the platform is invalid - but why am I not allowed to change the platform? 

I'd expect that I could assign the platform if it is configured in a wrong way.
Comment 1 Jesse Glick 2011-11-21 17:18:22 UTC
Maybe you are missing the default platform in Tools > NetBeans Platforms? Should not happen unless you have a corrupt IDE installation.

I do not see downloads listed from the page you mentioned; looked for "beispielen" or similar (excuse my very rusty German!).
Comment 2 locked 2011-11-21 18:44:05 UTC
Created attachment 113381 [details]
My Plaform config

That's my platform config.
When I'm developing my own platform module it works quite fine.

When using this downloaded example, I cannot compile the example and get the screenshot given before.
Even though I do not get an NPE, could it be realted to Bug #205324 ?
A wrongly onfigured platform which cannot be reassigned manually?
Comment 3 Jesse Glick 2011-11-21 19:58:53 UTC
(In reply to comment #2)
> When I'm developing my own platform module it works quite fine.
> 
> When using this downloaded example, I cannot compile the example and get the
> screenshot given before.

Maybe something wrong with the project then. Without access to it I cannot say.

> Even though I do not get an NPE, could it be related to Bug #205324 ?

Probably.