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 213934 - Cannot locate java installation in specified jdkhome C:\Program Files\Java\jdk1.7.0
Summary: Cannot locate java installation in specified jdkhome C:\Program Files\Java\jd...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2012-06-11 07:26 UTC by eino
Modified: 2013-05-14 10:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Dialog box screenshot (39.73 KB, image/jpeg)
2012-06-11 07:26 UTC, eino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eino 2012-06-11 07:26:10 UTC
Created attachment 120637 [details]
Dialog box screenshot

This is usability issue.

It is perfectly normal thas user updates his/her JDK like I did from 1.7b4 -> 1.7u4.  Some how Netbeans is falled in love with original version.  Even that you tell it, that its OK to use this new version, it will ask it forever.

There is no point of asking this kind of question. I did not select the original version of JDK when I installed Netbeans. If it's necessary to ask this kind of question there should be option box "use this new default version permanently"

Dialog which irritate me


==== Invalid jdkhome specified ====================
Cannot locate java installation in specified jdkhome C:\Program Files\Java\jdk1.7.0.
Do you want to try to use default version?  
(Yes/No)
=====================================================

I know I can go to fix this manually, but I think that Netbeans should be clever to fix it automatically.
Comment 1 Libor Fischmeistr 2012-06-11 15:35:09 UTC
I know about that and agree with you it can be annoying, but now it's not a priority. We're going to fix it in next NB version.

Thank you for report.
Comment 2 PatrikOlsson 2013-03-28 23:21:16 UTC
In NB 7.3 you can't even fix it manually. NB no longer reads the netbeans.conf file and ignores --jdkhome in command line.

Only work-around I could find is to copy the Java installation directory and renamed it (or re-install NB).
Comment 3 Libor Fischmeistr 2013-03-29 07:16:53 UTC
(In reply to comment #2)
> In NB 7.3 you can't even fix it manually. NB no longer reads the netbeans.conf
> file and ignores --jdkhome in command line.

I daily builds the --jdkhome option is not ignored issue 227068