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.
After building NB (060406) on windows (build successful) -> nb.exe -> "Cannot start the IDE!"
Can't imagine anything else but the windows native launcher.
Build from trunk? If so, this is not the first report. Radim put in a new nbexec.exe binary earlier today and another developer already complained about the launcher crashing. The change has been rolled back. To be investigated.
Verified. (trunk 6.0 - 060407 - 15:15)
I exp. that for any downloadable build of 6.0 I tried so far (e.g. netbeans-6_0-daily-bin-200604181800-18_Apr_2006_1800.zip), including latest Qbuild. I always use OS independant d'loads I extract somewhere. 5.0 and 5.5preview works. WinXP, JRE5
To herkules: what is exactly your problem? Does the nbexec.exe launcher fails or is there a problem in Java code? Can you find messages.log file and attach it to bug report?
It's definately the launcher netbeans.exe and nb.exe. The dialog with that message pops up immediately, faster than a JRE typically loads. A messages.log isn't written ... the whole NB file infrastructure isn't created (esp. no .netbeans\6.0xxx\var\log).
herkules: can you attach the output of the 'set' command on the Windows console? Are you passing any extra parameters to the NB launcher? Any special Windows configuration (like alternative shell), or something like that? Could you please also check if there is the netbeans.clusters file in your ${nb-install}/etc folder? Is the message really exactly the same? "Cannot start the IDE!"? Please confirm. Thanks.
Here is my 'set' (removed some confidential stuff, sry). No special shell or such. The file netbeans.clusters is right there. Screenshot of the error dialog is attached. The message is not exactly the same. The '!' is missing. D:\development\netbeans\bin>set ALLUSERSPROFILE=d:\Dokumente und Einstellungen\All Users APPDATA=d:\Dokumente und Einstellungen\jplewe\Anwendungsdaten CLIENTNAME=Console CommonProgramFiles=C:\Programme\Gemeinsame Dateien ComSpec=C:\WINDOWS\system32\cmd.exe DXSDK_DIR=C:\Programme\Microsoft DirectX SDK (February 2006)\ EmpirumServer=DE-EMP01 FP_NO_HOST_CHECK=NO HOMEDRIVE=H: HOMEPATH=\ HOMESHARE=\\SDEST-FS1\userhome$\jplewe INCLUDE=C:\Programme\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\ LIB=C:\Programme\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\ LOGONSERVER=\\DE-SRV01 NUMBER_OF_PROCESSORS=1 OS=Windows_NT OSG_FILE_PATH=d:\development\OpenSceneGraph\data;d:\development\OpenSceneGraph\data\Images;d:\develo pment\OpenSceneGraph\data\fonts OSG_ROOT=d:\development\OpenSceneGraph Path="C:\Programme\Microsoft DirectX SDK (February 2006)\Utilities\Bin\x86";C:\WINDOWS\system32;C:\W INDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Gemeinsame Dateien\Adaptec Shared\System;C:\PROGRA~1\IB M\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;;C:\Programme\ZipGenius 6\;C:\Program Files\Starbase\StarGate SDK\Lib;C:\Programme\QuickTime\QTSystem\;C:\Programme\ATI Tec hnologies\ATI.ACE\;D:\GizmoSDK\Gizmo3D\lib;D:\GizmoSDK\GizmoBase\lib; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0403 ProgramFiles=C:\Programme PROMPT=$P$G QTJAVA=C:\Programme\Java\jre1.5.0_04\lib\ext\QTJava.zip SESSIONNAME=Console StarTeamApp=c:\Program Files\Starbase\StarTeam 5.2 SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=d:\DOKUME~1\jplewe\LOKALE~1\Temp TMP=d:\DOKUME~1\jplewe\LOKALE~1\Temp USERNAME=jplewe USERPROFILE=d:\Dokumente und Einstellungen\jplewe VS71COMNTOOLS=C:\Programme\Microsoft Visual Studio .NET 2003\Common7\Tools\ windir=C:\WINDOWS
Created attachment 29941 [details] Cannot start the IDE screenshot
Desperately I just copied the launcher files of my NB5 installation (which works) to my NB6 folder. Same result. Cannot start the IDE. So its not in the launchers binaries.
NB5 launcher *won't* work with NB6. In theory, you could try the launcher from a recent NB5.5 build. They should be compatible. Which Q-build of NB5.5 do you have? The launcher changes were put in just a week ago.
I downloaded daily build of 5.5 which works like a charm. Copying the NB5.5 launcher into my NB6 installation doesn't change anything. I never had a 5.5 Qbuild, I had a 6.0 Qbuild netbeans-6_0-qbuild-bin-200603292200-29_Mar_2006_2200.zip. In contrast to what I said before (sry), this version actually *works*!
Created attachment 29982 [details] Dev (6.0) launchers with debug info.
herkules: I have attached a zip file with patched windows launchers. The patch doesn't fix anything, but will print some debug info that I hope to be useful for analysis of the problem. Please unzip the launchers into your ${nb-dev-install}/bin folder, try to run the IDE again and attach the console output to this issue. Thank you.
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\development\netbeans\bin>nb userdir = d:\Dokumente und Einstellungen\jplewe/.netbeans/dev cmdline2 = "D:\development\netbeans\platform7\lib\nbexec.exe" -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense --branding nb --clusters "D:\development\netbeans\nb6.0;D:\development\netbeans\ide8;D:\development\netbeans\e nterprise4;D:\development\netbeans\harness" --userdir "d:\Dokumente und Einstellungen\jplewe/.netbeans/dev" -J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true CreateProcess error # = D:\development\netbeans\bin>
Created attachment 30011 [details] Platform launcher with debug messages.
Thanks. Unfortunately, it didn't help me much. There's nothing suspicious in the debug log. I've also patched the platform launcher (nbexec.exe) to print some messages. Could you please unzip it in your ${nb-install}/platform/lib folder and try to run NetBeans again? Attach the resulting console log, please. Thanks.
There is no 'platform' folder but a ${nb-install}/platform7/lib (note the '7') that I used now. BTW, this folder did not contain any nbexec.exe before, just a nbexec without extension. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\development\netbeans\bin>nb userdir = d:\Dokumente und Einstellungen\jplewe/.netbeans/dev cmdline2 = "D:\development\netbeans\platform7\lib\nbexec.exe" -J-Dnetbeans.importclass=org.netbeans .upgrade.AutoUpgrade -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense --branding nb --clusters "D:\development\netbeans\nb6.0;D:\development\netbeans\ide8;D:\development\netbeans\e nterprise4;D:\development\netbeans\harness" --userdir "d:\Dokumente und Einstellungen\jplewe/.netbea ns/dev" -J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Dnetbeans.logger.console=tr ue -J-ea -J-Dapple.laf.useScreenMenuBar=true argc = 16 exepath = D:\development\netbeans\platform7\lib\nbexec.exe plathome = D:\development\netbeans\platform7 jdkhome = C:\Programme\Java\jdk1.5.0_06 newargv[0] = "D:\development\netbeans\platform7\lib\nbexec.exe" newargv[2] = "-J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade" newargv[3] = "-J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense" newargv[4] = "--branding" newargv[5] = "nb" newargv[6] = "--clusters" newargv[7] = "D:\development\netbeans\nb6.0;D:\development\netbeans\ide8;D:\development\netbeans\ent erprise4;D:\development\netbeans\harness" newargv[8] = "--userdir" newargv[9] = "d:\Dokumente und Einstellungen\jplewe/.netbeans/dev" newargv[10] = "-J-Xms32m" newargv[11] = "-J-Xmx128m" newargv[12] = "-J-XX:PermSize=32m" newargv[13] = "-J-XX:MaxPermSize=96m" newargv[14] = "-J-Dnetbeans.logger.console=true" newargv[15] = "-J-ea" newargv[16] = "-J-Dapple.laf.useScreenMenuBar=true" newargv[17] = -userdir newargv[18] = "d:\Dokumente und Einstellungen\jplewe\.netbeans\dev" argc = 19 exepath = D:\development\netbeans\platform7\lib\nbexec.exe plathome = D:\development\netbeans\platform7 jdkhome = C:\Programme\Java\jdk1.5.0_06 Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/Main D:\development\netbeans\bin>
Re "There is no 'platform' folder but a ${nb-install}/platform7/lib". That's correct. I meant the platform7 folder. Sorry for the confusion. Re "BTW, this folder did not contain any nbexec.exe before, just a nbexec without extension." WHAT? nbexec.exe is the native platform launcher. It must be there on Windows. The 'nbexec' version is a shell script for Unix-based systems only. I need to check the zip distribution of the dev builds.
I just checked the recent archives of NB dev builds and all of them do include the netbeans/platform7/lib/nbexec.exe file. Why it was not present in your distribution is a mystery to me.
Oh oh ... I verified that my download does NOT contain nbexec.exe. Than I looked for org/netbeans/Main and found the whole platform folder pretty empty. With a suspect I checked that the filesize of my download was a bit small ... *blush* Me ... I ... don't know what to say. I got fooled by a damaged download that wasn't reported by my zipper. I really thought I saw the phenomenon with different downloads, but obviously I didn't. Todays daily now works for me. I really apologize for my troublemaking.
Ok, never mind. :-) So, this one appears to be solved. I still need to find out why the original fix of nbexec.exe didn't work when this issue was reported for the first time. Thanks, anyway.
The original problem explained. Someone mistakenly integrated a zipped version of the file as nbexec.exe. Correct version now integrated as fix of issue #74568.
All issues solved. The original bug was caused by a corrupted .exe image. The problem reported by 'herkules' was a result of a corrupted NB installation. No more work to do here.
Verified.