简体   繁体   中英

JDK8 for NetBeans 12.2?

I'm trying to install JDK8 as a platform on NetBeans 12.2, but I keep getting this error message:

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

Is there a way around this? Or is there a version of JDK8 that won't yield this error message?

Further: I should have mentioned that I'm on MACOS Big Sur.

Here's what I get with java -version in Terminal:

java version "15.0.2" 2021-01-19 Java(TM) SE Runtime Environment (build 15.0.2+7-27) Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

And here's what I get with javac -version:

javac 15.0.2

You are probably getting this message because the JDK executables haven't been added to your path as environment variables. Directly from the official java website, here's a guide on how to fix this problem.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM