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 219008 - Restarting IDE throws error Cannot load "platform/lib/nbexec64.dll
Summary: Restarting IDE throws error Cannot load "platform/lib/nbexec64.dll
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.2.1
Hardware: PC Windows 8 x64
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 219667 224884 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-25 17:06 UTC by sunbiz
Modified: 2013-01-31 17:18 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages log file (56.69 KB, application/octet-stream)
2012-09-25 17:06 UTC, sunbiz
Details
updater log (13.61 KB, application/octet-stream)
2012-09-25 17:06 UTC, sunbiz
Details
error message screenshot (61.75 KB, image/png)
2012-09-26 13:28 UTC, Libor Fischmeistr
Details
workaround screenshot (19.43 KB, image/png)
2012-09-26 13:33 UTC, Libor Fischmeistr
Details
Possible patch (1.29 KB, patch)
2012-10-24 06:37 UTC, Libor Fischmeistr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-09-25 17:06:19 UTC
Created attachment 124895 [details]
messages log file

Just installed the JIRA plugin after which IDE restart. Got the following error when Netbeans was automatically restarting - Cannot load "platform/lib/nbexec64.dll
Also when trying to start the IDE now, each time get the same error.
Attached messages.log
Comment 1 sunbiz 2012-09-25 17:06:52 UTC
Created attachment 124896 [details]
updater log
Comment 2 sunbiz 2012-09-25 17:10:42 UTC
The workaround has been to start bin/netbeans.exe once... and then I can start netbeans64.exe subsequent times
Comment 3 Libor Fischmeistr 2012-09-26 10:43:01 UTC
Hi, I tried it on the same configuration (JDK 6u35, NB 7.3 Beta) but everything worked well.

Can I ask you for log from the launcher? Just use switch: netbeans64.exe --trace out.log.

Also try to choose option Restart later... and report what happened.

Thanks
Comment 4 Libor Fischmeistr 2012-09-26 13:28:14 UTC
Created attachment 124941 [details]
error message screenshot

I finally managed to reproduce this bug, the key was to try it on Windows 8 :-)
Comment 5 Libor Fischmeistr 2012-09-26 13:33:04 UTC
Created attachment 124943 [details]
workaround screenshot

The message seems to be thrown by Windows... the problem is in path used in shortcut.

Simple workaround: Change the start in path to "C:\Program files\" only (in screenshot).
Comment 6 sunbiz 2012-09-26 13:33:34 UTC
Thanks for detecting that. Apologies for not mentioning that earlier as part of the issue. I can't create the out.log file with the --trace
Comment 7 Libor Fischmeistr 2012-09-26 13:37:54 UTC
(In reply to comment #6)
> Thanks for detecting that. Apologies for not mentioning that earlier as part of
> the issue. I can't create the out.log file with the --trace

Thank you for trying it. It's not necessary now, when we are able to reproduce this bug. To write into the file you have to choose some directory you have RW rights. Example: netbeans64.exe --trace "C:\Users\username\Documents\out.log"

If you have NB installed in Program files, than you don't have permission to write  somewhere in the installation directory.
Comment 8 Jiri Rechtacek 2012-10-08 09:07:27 UTC
*** Bug 219667 has been marked as a duplicate of this bug. ***
Comment 9 Libor Fischmeistr 2012-10-24 06:37:51 UTC
Created attachment 126432 [details]
Possible patch

The possible patch, we have to set the dll directory, otherwise it's set to jdkhome after first run of NetBeans. Tested on Win 8.

But Win XP SP1+ required to run NetBeans - shouldn't matter, because NetBeans support Win XP SP3+.
Comment 10 Libor Fischmeistr 2012-10-24 08:47:47 UTC
Fixed in http://hg.netbeans.org/core-main/rev/f4bcba911ed9

Tested on: Win XP SP3 32bit, Win 7 64bit (netbeans.exe and netbeans64.exe)
Comment 11 Quality Engineering 2012-10-25 10:53:40 UTC
Integrated into 'main-golden', will be available in build *201210250921* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f4bcba911ed9
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #219008: Restarting IDE throws error Cannot load "platform/lib/nbexec64.dll
Comment 12 Stepan Zebra 2013-01-15 10:18:18 UTC
*** Bug 224884 has been marked as a duplicate of this bug. ***
Comment 13 Stepan Zebra 2013-01-15 11:17:39 UTC
fix verified in 7.3 RC1
Comment 14 james_kosin 2013-01-16 02:11:34 UTC
(In reply to comment #12)
> *** Bug 224884 has been marked as a duplicate of this bug. ***

The problem seems to be just in the update and initial restart.  You can change the start directory after the update and the shortcut works and the DLL is not declared missing then.
Comment 15 thonyfd 2013-01-31 17:18:46 UTC
(In reply to comment #5)
> Created attachment 124943 [details]
> workaround screenshot
> 
> The message seems to be thrown by Windows... the problem is in path used in
> shortcut.
> 
> Simple workaround: Change the start in path to "C:\Program files\" only (in
> screenshot).

Thanks Very Much! Win 8 64bits + NetBeans 7.2.1 Fixed