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 74501 - Cannot start the IDE
Summary: Cannot start the IDE
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Jan Chalupa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-06 13:12 UTC by Peter Pis
Modified: 2008-12-22 20:49 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Cannot start the IDE screenshot (5.35 KB, image/jpeg)
2006-04-19 14:51 UTC, herkules
Details
Dev (6.0) launchers with debug info. (20.71 KB, application/x-compressed)
2006-04-21 15:05 UTC, Jan Chalupa
Details
Platform launcher with debug messages. (5.63 KB, application/x-compressed)
2006-04-24 13:01 UTC, Jan Chalupa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2006-04-06 13:12:00 UTC
After building NB (060406) on windows (build successful) -> nb.exe -> "Cannot
start the IDE!"
Comment 1 Petr Nejedly 2006-04-06 16:15:12 UTC
Can't imagine anything else but the windows native launcher.
Comment 2 Jan Chalupa 2006-04-06 16:20:50 UTC
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.
Comment 3 Peter Pis 2006-04-07 13:43:47 UTC
Verified. (trunk 6.0 - 060407 - 15:15)
Comment 4 herkules 2006-04-19 12:59:20 UTC
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
Comment 5 _ rkubacki 2006-04-19 13:32:11 UTC
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?
Comment 6 herkules 2006-04-19 13:43:11 UTC
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).


Comment 7 Jan Chalupa 2006-04-19 14:37:37 UTC
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.
Comment 8 herkules 2006-04-19 14:50:19 UTC
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

Comment 9 herkules 2006-04-19 14:51:12 UTC
Created attachment 29941 [details]
Cannot start the IDE screenshot
Comment 10 herkules 2006-04-19 15:03:21 UTC
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.
Comment 11 Jan Chalupa 2006-04-19 15:11:40 UTC
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.
Comment 12 herkules 2006-04-20 09:48:09 UTC
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*! 
Comment 13 Jan Chalupa 2006-04-21 15:05:52 UTC
Created attachment 29982 [details]
Dev (6.0) launchers with debug info.
Comment 14 Jan Chalupa 2006-04-21 15:09:28 UTC
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.
Comment 15 herkules 2006-04-24 08:48:55 UTC
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>
Comment 16 Jan Chalupa 2006-04-24 13:01:42 UTC
Created attachment 30011 [details]
Platform launcher with debug messages.
Comment 17 Jan Chalupa 2006-04-24 13:04:09 UTC
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.
Comment 18 herkules 2006-04-24 13:22:39 UTC
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>
Comment 19 Jan Chalupa 2006-04-24 13:29:56 UTC
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.
Comment 20 Jan Chalupa 2006-04-24 13:48:18 UTC
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.
Comment 21 herkules 2006-04-24 14:17:49 UTC
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. 
Comment 22 Jan Chalupa 2006-04-24 14:19:57 UTC
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.
Comment 23 Jan Chalupa 2006-04-24 20:14:57 UTC
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.
Comment 24 Jan Chalupa 2006-05-22 14:38:04 UTC
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.
Comment 25 Peter Pis 2006-05-22 14:53:20 UTC
Verified.