LeoQLF
LeoQLF

Reputation: 63

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?

Upvotes: 1

Views: 20412

Answers (1)

E-Riz
E-Riz

Reputation: 33024

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).

Upvotes: 1

Related Questions