简体   繁体   中英

How do I add a new JRE library in Eclipse?

I have been using Eclipse for about a month now but only for creating Android applications. Now that I'm trying to create a Java application (android game using LibGDX). It seems that my JDK is not working, I can create a perfectly working android project but can't create a new Java project that works properly.!

I can't post a picture but the error says : "The project cannot be built until build path errors are resolved" and when I look at the project Libraries, the JRE System Library shows an error (unbound).

How do I add a new JDK or fix this problem?

Open the Preferences, then navigate to Java > Installed JREs . There, use the Add... button to select the JDK from your file system (use the "Standard VM" option). Once you've done that (and used the OK button to save, you'll probably want to go back into Preferences, to the Execution Environments section, and assign the new JRE you defined as the default for some of the EEs (eg, JavaSE-1.7).

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