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 254540 - Installer doesn't ask for existing jdk location
Summary: Installer doesn't ask for existing jdk location
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: JDK bundle (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 08:21 UTC by mrpc
Modified: 2015-08-24 07:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of installer - there should be a question about sdk there (17.37 KB, image/png)
2015-08-20 08:21 UTC, mrpc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpc 2015-08-20 08:21:14 UTC
Created attachment 155486 [details]
Screenshot of installer - there should be a question about sdk there

Every time I install the latest build of Netbeans, I have to manualy
edit the etc\netbeans.conf to set the JDK path and replace the bundled
JRE path.
If I don't set the JDK path, I cannot run cordova apps - that are
actually developed in html5, so it should be supported out of the box in
the PHP or HTML5 bundle of Netbeans.

That happens because the installer never asks me if I have JDK already installed or where should it be.

My machine has JDK 1.8.0_51 installed. And for example, in build 201508190002, I had to change:
netbeans_jdkhome="C:\Program Files\NetBeans Dev 201508190002\bin\jre"
to:
netbeans_jdkhome="e:\Program Files\Java\jdk1.8.0_51"

There is also jdk1.8.0_40 (e:\Program Files\Java\jdk1.8.0_40) - when I updated java, I didn't remove the previous version. Now that I see it, JAVA_HOME in windows still targets the old version. 

I just tried Build 201508200002, same issue.
Comment 1 Libor Fischmeistr 2015-08-20 12:34:45 UTC
Hello,

I understand you, but cannot consider this as issue. That was the purpose to do not enable user to choose Java when there is bundled JRE (HTML, PHP and C/C++). Unfortunately for cordova the JDK is needed.
Comment 2 mrpc 2015-08-20 14:42:22 UTC
The whole idea behind Cordova is to make apps using html5. It's even advertised in the website (https://netbeans.org/features/html5/index.html) as feature of the html5 web development section.

So, if a developer downloads the html5 version to do cordova development, then he/she has to guess that has to change a configuration file in the IDE just installed in order to get the feature that is advertised in netbeans website?

I understand that option is ommited by design, by in that case it doesn't make sense. It's one thing to embed the jre (and a nice feature to be honest), but another thing to remove a user option from the installer.
Comment 3 Libor Fischmeistr 2015-08-24 07:24:29 UTC
(In reply to mrpc from comment #2)
> The whole idea behind Cordova is to make apps using html5. It's even
> advertised in the website (https://netbeans.org/features/html5/index.html)
> as feature of the html5 web development section.
> 
> So, if a developer downloads the html5 version to do cordova development,
> then he/she has to guess that has to change a configuration file in the IDE
> just installed in order to get the feature that is advertised in netbeans
> website?
> 
> I understand that option is ommited by design, by in that case it doesn't
> make sense. It's one thing to embed the jre (and a nice feature to be
> honest), but another thing to remove a user option from the installer.

Agree with you. Don't worry, we are going to discuss whether to enable that option in this case. Or if there is another suitable solution...