Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Error message: Target runtime jdk1.8.0.121 is not defined(How to configure a JRE as a target runtime ?)
icon5.gif  Error message: Target runtime jdk1.8.0.121 is not defined [message #1754423] Fri, 17 February 2017 16:13 Go to next message
amauryxiv Mising name is currently offline amauryxiv Mising nameFriend
Messages: 3
Registered: September 2010
Junior Member
Hi everybody.

I work on a Windows 10 x64 computer with Eclipse Indigo. The version of my JDK (and so my JRE) is 1.8.0_121.
I've got 5 projects; with four of them, when I try to built the projects I obtain this error: Target runtime jdk1.8.0.121 is not defined.

For each of these four projects I've got a org.eclipse.wst.common.project.facet.core.xml xml file with the following content:
<?xml version="1.0" encoding="UTF-8"?>
  <runtime name="jdk1.8.0_121"/>
  <installed facet="java" version="1.8"/>

In the Windows->Preferences->Installed JREs settings, my JRE, named jdk1.8.0_121, is set.
In the Windows->Preferences->Build path settings, the field "As jre library use" is set to "JRE container"

I can't find why this problem comes.

Any help will be welcome.
Thank's in advance.
Re: Error message: Target runtime jdk1.8.0.121 is not defined [message #1754457 is a reply to message #1754423] Fri, 17 February 2017 23:57 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1649
Registered: July 2009
Senior Member
Indigo was released in 2011. What did we know about Java 8 at that time? Nothing.
Install a recent Eclipse and if that still has the same problem, then you might have a relevant question.
Previous Topic:uninstall eclipse features by command line
Next Topic:Javac cannot infer type from lambda body but ECJ does
Goto Forum:

Current Time: Tue Nov 13 00:38:45 GMT 2018

Powered by FUDForum. Page generated in 0.02168 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top