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 227068 - Launcher ignores --jdkhome option
Summary: Launcher ignores --jdkhome option
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-06 00:22 UTC by lopsided98
Modified: 2013-03-20 08:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Launcher trace (6.73 KB, text/plain)
2013-03-07 01:58 UTC, lopsided98
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lopsided98 2013-03-06 00:22:13 UTC
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.
Comment 1 Marian Mirilovic 2013-03-06 08:12:33 UTC
Could you please attach the messages.log file and reopen this issue ? Thanks in advance.
Comment 2 Libor Fischmeistr 2013-03-06 11:38:02 UTC
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
Comment 3 lopsided98 2013-03-07 01:58:59 UTC
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.
Comment 4 Libor Fischmeistr 2013-03-07 08:03:30 UTC
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
Comment 5 Quality Engineering 2013-03-20 02:07:44 UTC
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
Comment 6 Libor Fischmeistr 2013-03-20 07:30:38 UTC
Fixed in: http://hg.netbeans.org/core-main/rev/17d586edf21a
Comment 7 Marian Mirilovic 2013-03-20 07:38:47 UTC
Let's target this to 7.3.1 ...