简体   繁体   中英

How to tell react-native which JDK to use among multiple

I currently have JDK 11 installed in my ubuntu system. I want to start react-native development. But I have read that it won't work with any version higher than JDK 8.

So now I would install JDK 8 alongside JDK 11 and set path for it seperately.

So my question is how to command react-native to use JDK 8 only not JDK 11? I couldn't find it anywhere.

In november 2020, there is no need to downgrade JDK to version 8 for react-native development. You can have JDK 11 as well and it would work perfectly.

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