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 248643 - CND distribution of NetBeans 8.0.2 cannot be launched
Summary: CND distribution of NetBeans 8.0.2 cannot be launched
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 8.0.2
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-14 12:59 UTC by Jiri Kovalsky
Modified: 2014-11-18 15:23 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Installation log file (9.64 KB, text/plain)
2014-11-14 13:22 UTC, Jiri Kovalsky
Details
Installation log file (16.52 KB, text/plain)
2014-11-14 14:01 UTC, Jiri Kovalsky
Details
Installation log file for full distribution of 8.0.2 (22.81 KB, text/plain)
2014-11-14 14:34 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2014-11-14 12:59:24 UTC
I have downloaded netbeans-8.0.2-cpp-macosx.dmg [1] (74.7 MB with c2ebe805b3b0a68b24c1292b9ccabb00 MD5 checksum) and installed it on Mac OS X 10.8.2. After successful installation I however cannot launch the IDE due to the following error:

Error: Could not find or load main class org.netbeans.Main

Surprisingly JavaSE and PHP distributions worked like a charm! When I looked into /Applications/NetBeans/NetBeans 8.0.2.app/Contents/Resources/NetBeans/platform/lib folder I see that some files were not unpacked:

localhost:lib tester$ ls -l
total 6368
-rw-rw-r--   1 tester  admin   150012 Nov 10 21:44 boot.jar.pack
drwxrwxr-x  18 tester  admin      612 Nov 10 21:44 locale
-rwxrwxr-x   1 tester  admin    14860 Nov 10 21:02 nbexec
-rw-rw-r--   1 tester  admin   429570 Nov 10 21:02 nbexec.dll
-rw-rw-r--   1 tester  admin   152064 Nov 10 21:02 nbexec.exe
-rw-rw-r--   1 tester  admin  1480851 Nov 10 21:02 nbexec64.dll
-rw-rw-r--   1 tester  admin   210432 Nov 10 21:02 nbexec64.exe
-rw-rw-r--   1 tester  admin    16380 Nov 10 21:36 org-openide-modules.jar.pack
-rw-rw-r--   1 tester  admin    77491 Nov 10 21:02 org-openide-util-lookup.jar.pack
-rw-rw-r--   1 tester  admin   715578 Nov 10 21:35 org-openide-util.jar.pack

This is my Java configuration:

localhost:lib tester$ /usr/libexec/java_home -V
Matching Java Virtual Machines (4):
    1.8.0_20, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
    1.8.0, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
    1.6.0_37-b06-434, x86_64:	"Java SE 6"	/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_37-b06-434, i386:	"Java SE 6"	/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

and I use:

localhost:lib tester$ java -version
java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b23)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b22, mixed mode)

[1] http://bits.netbeans.org/download/8.0.2/daily/9dad33/2014-11-10_20-27-03/start.html?platform=macosx&lang=en&option=cpp
Comment 1 Libor Fischmeistr 2014-11-14 13:05:42 UTC
Jirko, can you please attach installer log? /var/log/install.lpog

Thanks
Comment 2 Jiri Kovalsky 2014-11-14 13:22:39 UTC
Created attachment 150484 [details]
Installation log file
Comment 3 Stepan Zebra 2014-11-14 13:57:57 UTC
Same here, on my MacBook with Yosemite.
Comment 4 Jiri Kovalsky 2014-11-14 14:01:04 UTC
Created attachment 150487 [details]
Installation log file
Comment 5 Jiri Kovalsky 2014-11-14 14:02:39 UTC
Comment on attachment 150487 [details]
Installation log file

Interestingly JavaEE distribution can be launched in spite of this message:

Nov 14 14:53:01 localhost installd[14501]: ./postinstall: Error: Could not find or load main class org.netbeans.Main
Comment 6 Jiri Kovalsky 2014-11-14 14:34:21 UTC
Created attachment 150488 [details]
Installation log file for full distribution of 8.0.2

Full distribution can also be launched without problems after installation.
Comment 7 Marian Mirilovic 2014-11-14 14:53:55 UTC
Libor, any comments ?
Comment 8 Libor Fischmeistr 2014-11-14 15:02:53 UTC
(In reply to Marian Mirilovic from comment #7)
> Libor, any comments ?

I'm working on it. There is a bug in the installer script. The jars are not unpacked.
Comment 9 Libor Fischmeistr 2014-11-14 15:49:24 UTC
Fix in core-main - http://hg.netbeans.org/core-main/rev/bc41b3df485e
Fix in release801 - http://hg.netbeans.org/releases/rev/dac6b693ab13

Please guys, when you will be verifying this fix, please check the content of the installation folder, if there are not pack files together with jars.

Thanks
Comment 10 Libor Fischmeistr 2014-11-14 16:17:16 UTC
The fix is not the best solution, but it should work and in this situation I consider it the simplest solution.
Comment 11 Quality Engineering 2014-11-15 05:42:38 UTC
Integrated into 'main-silver', will be available in build *201411150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bc41b3df485e
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #248643: CND distribution of NetBeans 8.0.2 cannot be launched