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 236655 - Installer created fails for example paint app
Summary: Installer created fails for example paint app
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: NBI (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 13:39 UTC by oliverrettig
Modified: 2015-01-02 15:00 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
ant log (466.97 KB, text/plain)
2013-10-02 13:39 UTC, oliverrettig
Details
ant log (debug level) (853.66 KB, text/plain)
2013-10-02 14:05 UTC, oliverrettig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oliverrettig 2013-10-02 13:39:24 UTC
Created attachment 140728 [details]
ant log

Installer creation fails for the example project Paint and also for my own projects. Ant log in verbose level shows that an api is missed.

It seams to me that the installer build script copies src code from the harness folder to the PaintApp build folder and trys to compile it there. But the api org.netbeans.installer.* is not found.

I have also tried to build against nb 7.2 version.

--------------
Product Version: NetBeans IDE 7.3.1 (Build 201306052037)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 2.6.37.6-0.11-desktop running on amd64; UTF-8; de_DE (nb)
Comment 1 Libor Fischmeistr 2013-10-02 13:43:34 UTC
Thank you for the report.

(In reply to oliverrettig from comment #0)

> It seams to me that the installer build script copies src code from the
> harness folder to the PaintApp build folder and trys to compile it there.
> But the api org.netbeans.installer.* is not found.

It's correct. Installer engine is always copied from NetBeans harness folder. But it seems it not compiled.

> I have also tried to build against nb 7.2 version.

Did it work?
Comment 2 oliverrettig 2013-10-02 14:05:53 UTC
Created attachment 140732 [details]
ant log (debug level)
Comment 3 fawzalnz8a25 2013-10-02 14:08:05 UTC
Comment on attachment 140728 [details]
ant log

https://netbeans.org/bugzilla/show_bug.cgi?id=236205

--- Comment #5 from Milos Kleint <mkleint@netbeans.org> ---
(In reply to satory from comment #0)
> [ BUILD # : 201309112301 ]
> [ JDK VERSION : 1.7.0_25 ]
>
> When I go through the wizard when creating a Netbeans Module - Action, I am
> unable to progress further past the GUI registration step of the wizard.
>
> When I select "Global Menu Item", the Menu and Position fields are
> uneditable.
> and also when I select "Global Toolbar Item", the Toolbar and Positon fields
> are not editable.

do some of the combo boxes say "Please wait" or something similar? Is there a
progress bar in the status bar downloading the platform jars?

The problem is more fluid than just a build number being used (and we haven't
really changed much in the affected area).

What to watch out for:
is the module a standalone module or does it belong to an application? is the
application project associated with the module open?

In ant projects, there's a direct link to the nb platform binaries associated
with the module. In maven projects there is nothing like that, a module just
has it's compile dependencies. From the dependencies it's impossible to compose
the application context (entire menus/toobars), so we attempt a best guess
strategy.
1. find an opened application (nbm-application project) that contains the
module project and use it as application context (as it's dependencies compose
the entire app)
1a. sometimes the application dependencies have to be downloaded first so that
we can compose the application context (and that takes time)
2. if not found, we fallback to the netbeans IDE as aplication context, even
though it can be wrong in some situations (the IDE might have different menus
etc)
Comment 4 oliverrettig 2013-10-02 14:21:36 UTC
I have tried to build against 7.2.1 too but it also does not work :-)
Comment 5 Jiri Skrivanek 2013-10-03 06:26:47 UTC
The original description is about installer. Please, do not reassign and do not add different problems into one issue. File a separate bug if it is not related.
Comment 6 Libor Fischmeistr 2013-10-03 08:31:15 UTC
(In reply to oliverrettig from comment #4)
> I have tried to build against 7.2.1 too but it also does not work :-)

Thanks, now it's clear :)

May I ask you to use for example NB 7.4 RC2?
https://netbeans.org/community/releases/74/

And please create new project. Do not use the old one you have. Just work like from the scratch.

Thanks
Comment 7 oliverrettig 2013-10-03 20:26:22 UTC
I have tried nb 7.4RC2 and all works fine. I cauld create windows and linux installers for the example paint app. 

Any idea what is going wrong in 7.3.1?
Comment 8 oliverrettig 2015-01-02 15:00:16 UTC
Installation generation also fails with nb 8.0.2 and also if inside platform 7.4 inclusive the corresponding harness dir is configured.