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 269893 - Server JRE installation is not accepted as a valid JDK
Summary: Server JRE installation is not accepted as a valid JDK
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-22 08:08 UTC by tkellerer
Modified: 2017-02-22 08:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The contents of the Server JRE directory (6.20 KB, text/plain)
2017-02-22 08:08 UTC, tkellerer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2017-02-22 08:08:26 UTC
Created attachment 163688 [details]
The contents of the Server JRE directory

When using the "Server JRE" download (http://www.oracle.com/technetwork/java/javase/downloads/index.html) NetBeans will start using that JDK and everything works (editing, compiling, running, debugging, profiling). 

However in the "Java Platform Manager" dialog, NetBeans show for the default JDK that 

"Error: The specified folder does not contain a Java platform" 

(despite the fact that everything is working).

When trying to add the folder of a server JRE as a platform manually, NetBeans claims, that 

   "Cannot detect and install the selected platform. The java or javac may not be executable" 

but a JAVA_HOME\bin\java.exe and JAVA_HOME\bin\javac.exe are both present and executable. 

I think NetBeans is looking for the wrong files in that directory.

I have attached the tree output for the directory where the Server JRE was extracted to.