I have a jdk1.8.0_92 installed, which is also added to the Java/Installed JREs in Eclipse Neon. The "bin" subfolder containing the java compiler and all other components of a standard JDK is there. Still, when I try to assign this JRE as a "Server Runtime Environment" of a GlassFish server, Eclipse complains it needs a JDK and not a JRE. An older jdk1.7.0_55 folder does not produce this problem, it is considered to be a JDK by Eclipse, and not a JRE. What may be missing from the 1.8 installation, by which Eclipse categorizes it as a JRE? Image of the error message :
Okey, check this
glassfish\\config\\asenv.bat
where java path is configured
REM set AS_JAVA=C:\\Program Files\\Java\\jdk1.8.0_92\\jre/.. set AS_JAVA=C:\\Program Files\\Java\\jdk1.8.0_92
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.