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 206723 - Installer did not include junit4 libraries even though option was checked
Summary: Installer did not include junit4 libraries even though option was checked
Status: RESOLVED INCOMPLETE
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-27 07:49 UTC by yugin
Modified: 2012-05-15 08:18 UTC (History)
0 users

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 yugin 2011-12-27 07:49:54 UTC
Installer did not include the following files in the Windows 7 x64 environment:
c:\Program Files\NetBeans 7.0.1\platform\modules\ext\junit-4.8.2.jar
c:\Program Files\NetBeans 7.0.1\platform\modules\org-netbeans-libs-junit4.jar

causing compilation to have the error "package junit.org does not exist".  This is even though I had accepted the JUunit4 license and told it to install.

I installed the IDE twice and had the same problem both times.

I also installed the same Netbeans IDE 7.0.1 in a Windows 2003 (32-bit) environment and did not have any problems.

Worked around the x64 environment problem by copying 2 jars from the 32-bit environment.
Comment 1 Jiri Rechtacek 2012-01-03 09:01:13 UTC
(In reply to comment #0)
> Installer did not include the following files in the Windows 7 x64 environment:
> c:\Program Files\NetBeans 7.0.1\platform\modules\ext\junit-4.8.2.jar
> c:\Program Files\NetBeans 7.0.1\platform\modules\org-netbeans-libs-junit4.jar
> 
> causing compilation to have the error "package junit.org does not exist".  This
> is even though I had accepted the JUunit4 license and told it to install.
JUnit (both jar) doesn't install the IDE installer itself but IDE while the first start of IDE using Plugins API. This installation might fail in case of network/proxy problem. Attach your messages log from the first start of IDE after IDE installation for further evaluation. Thanks 

> I installed the IDE twice and had the same problem both times.
> 
> I also installed the same Netbeans IDE 7.0.1 in a Windows 2003 (32-bit)
> environment and did not have any problems.
It's interesting point, I'll try to reproduce it on Win7 x64. Thanks

> Worked around the x64 environment problem by copying 2 jars from the 32-bit
> environment.
Comment 2 Jiri Rechtacek 2012-01-25 08:54:03 UTC

*** This bug has been marked as a duplicate of bug 198739 ***
Comment 3 clintatcomputerorg 2012-05-11 19:07:12 UTC
I am re-opening this bug since it does not appear to be a duplicate of 198739. Under Windows 7 (64-bit--not sure if it matters), when the option is selected to install Junit, not all the necessary files are installed. It is not related to whether NetBeans is installed in a directory where the user has privileges. The problem occurs under all of the following scenarios:

* Install NetBeans as non-admin user under Program Files (entering admin pw when prompted).
* Right-click on installer and "Run as administrator" to install under Program Files.
* Install NetBeans in user directory structure (as non-admin user).

The problem occurs with 7.1.2 as well as the current development build. I tried several things to resolve it, and the one that worked for me was to search the NetBeans installation directory on a working 7.1.2 installation in Ubuntu, and copy the missing files to the corresponding Windows installation directory. Someone else described this process in another bug that was also closed as a dupe:

http://netbeans.org/bugzilla/show_bug.cgi?id=209698#c1
Comment 4 clintatcomputerorg 2012-05-11 21:55:59 UTC
(In reply to comment #3)
Correction to above: I just retried the third scenario (install to user dir). It worked, although I am certain it failed on a couple of other occasions when I tried this. There are only three things I can think of that I did differently this time:

1. Manually delete .netbeans directory after uninstalling NetBeans.
2. Selected Tomcat when installing (previously I had deselected both Tomcat and Glassfish).
3. Turned off the "send usage data" checkbox at the end of the installer (thinking possibly this is preventing a final step in the installer since I'm on a network with a lot of security protection).

I'm not sure whether any of these things is significant.
Comment 5 Jiri Rechtacek 2012-05-15 08:18:39 UTC
(In reply to comment #3)
> I am re-opening this bug since it does not appear to be a duplicate of 198739.
> Under Windows 7 (64-bit--not sure if it matters), when the option is selected
> to install Junit, not all the necessary files are installed. It is not related
> to whether NetBeans is installed in a directory where the user has privileges.
> The problem occurs under all of the following scenarios:
> 
> * Install NetBeans as non-admin user under Program Files (entering admin pw
> when prompted).
> * Right-click on installer and "Run as administrator" to install under Program
> Files.
> * Install NetBeans in user directory structure (as non-admin user).
> 
> The problem occurs with 7.1.2 as well as the current development build. I tried
> several things to resolve it, and the one that worked for me was to search the
> NetBeans installation directory on a working 7.1.2 installation in Ubuntu, and
> copy the missing files to the corresponding Windows installation directory.

It's weird. It shouldn't be needed to use such workaround. All JUnit related files should be installed in IDE installation directory (i.e. under Program Files in this case) or in userdir (if and only if installation directory is not writable, although it should be writable in your case). Could you try it again for me and attach your messages.log [1] from IDE session when JUnit was installed? Please, make a fresh installation of recent build of IDE [2], make a backup your userdir and remove it then and launch IDE. All relevant information for further investigation should be contained in the messages.log. Thanks a lot

[1] http://wiki.netbeans.org/FaqLogMessagesFile
[2] http://bits.netbeans.org/download/trunk/nightly/latest/

> Someone else described this process in another bug that was also closed as a
> dupe:
> 
> http://netbeans.org/bugzilla/show_bug.cgi?id=209698#c1