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.
I use a batch file to launch Netbeans with a custom JDK location using the --jdkhome option. Netbeans seems to ignore it and tries to use the JDK location specified in <install_dir>\etc\netbeans.conf. This only started happening when I updated to Netbeans 7.3.
Could you please attach the messages.log file and reopen this issue ? Thanks in advance.
Tried to reproduce, but --jdkhome option worked for me (both 32 and 64 bit launchers). I would ask you for the messages log - http://wiki.netbeans.org/FaqLogMessagesFile Also the trace of the launcher would be useful. Just run: netbeans.exe --trace C:\Users\<your user name>\trace.log Thanks
Created attachment 132308 [details] Launcher trace This is the trace from the launcher. I didn't attach the messages.log file because Netbeans never starts to generate it because it does not get past the launcher.
Thanks for the trace log. It perfectly showed me what happened... In fact the --jdkhome option overrides the property from netbeans.conf file, but that property is not fully ignored and if the jdk form netbeans_jdkhome doesn't exist the error message is shown. I consider it a bug, but the priority is quite lower - P3. So if you want to run netbeans, just comment netbeans_jdkhome property in netbeans .conf
Integrated into 'main-golden', will be available in build *201303192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/17d586edf21a User: Libor Fischmeistr <lfischmeistr@netbeans.org> Log: #227068: Launcher ignores --jdkhome option
Fixed in: http://hg.netbeans.org/core-main/rev/17d586edf21a
Let's target this to 7.3.1 ...