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 238729 - NetBeans C/C++ bundle cannot be installed without JDK
Summary: NetBeans C/C++ bundle cannot be installed without JDK
Status: NEW
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-23 10:47 UTC by czirkos
Modified: 2013-11-28 07:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Installer missing JDK. (13.13 KB, image/png)
2013-11-23 10:47 UTC, czirkos
Details
Installer log with --verbose, from 7.4 (24.38 KB, text/plain)
2013-11-25 10:11 UTC, czirkos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description czirkos 2013-11-23 10:47:12 UTC
Created attachment 142505 [details]
Installer missing JDK.

The documentation clearly states, that JDK is not required for the C/C++ bundle:
https://netbeans.org/community/releases/74/install.html#requiredsoftware ,
"The PHP and C/C++ NetBeans bundles only require the Java Runtime Environment (JRE) 7 to be installed and run. JDK 7 is required if you are planning to use any of the Java features. "

However, the installer won't run, because it says that JDK is missing. See the screenshot. The same with 7.4 and with 7.3.1.

Installer tried was:
http://dlc.sun.com.edgesuite.net/netbeans/7.4/final/bundles/netbeans-7.4-cpp-windows.exe
Comment 1 Libor Fischmeistr 2013-11-25 07:37:22 UTC
Hello, thanks for the report.

Could you please attach installer log?

Run installer with "--verbose --output <log file>" arguments.

Thanks
Comment 2 czirkos 2013-11-25 10:11:36 UTC
Created attachment 142528 [details]
Installer log with --verbose, from 7.4
Comment 3 Libor Fischmeistr 2013-11-25 10:53:06 UTC
Thanks for quick response. Unfortunatelly it seems that your JRE is not properly installed cause it's not found.

Try to pass path to JRE by --javahome argument.

Example: netbeans-7.4-cpp-windows.exe --javahome <path to JRE>
Comment 4 czirkos 2013-11-26 19:36:34 UTC
The installer finds the JRE at the default location. Maybe the message of the installer is to be updated, so it does not say "JDK is required", but it says "JRE is required", because that's the thing the IDE needs to run.
Comment 5 Libor Fischmeistr 2013-11-27 09:15:07 UTC
(In reply to czirkos from comment #4)
> The installer finds the JRE at the default location. Maybe the message of
> the installer is to be updated, so it does not say "JDK is required", but it
> says "JRE is required", because that's the thing the IDE needs to run.

I don't understand the first sentence. If the installer has found the JRE then the error message shouldn't appear. And from the log I can see that no Java (JRE or JDK) was found. Please try to clarify this issue.

I agree with you that the error message might be confusing and should be fixed. Is that the only problem now?
Comment 6 czirkos 2013-11-27 18:18:03 UTC
Yes, with JRE installed, it works. The message is misleading.
Comment 7 Libor Fischmeistr 2013-11-28 07:54:32 UTC
(In reply to czirkos from comment #6)
> Yes, with JRE installed, it works. The message is misleading.

Good to know, thanks.