Eclipse: The type {type} cannot be resolved. It is indirectly referenced from required .class files

The type {type} cannot be resolved. It is indirectly referenced from required .class files

In Eclipse, the cause of this problem is somehow deleted the SYSTEM JRE LIBRARY associated with your project.

Simple fix in Eclipse:
-Right Click Project you are working on from Package Explorer
-Go to Properties
-Go to Java Build Path from the right tree structure
-Go to Libraries Tab
-Choose Add Library Button
-Select JRE System Library
-Hit Next, the Radio button will prompt the Workspace default JRE, and let it be that way
-Hit Finish

Advertisements

2 thoughts on “Eclipse: The type {type} cannot be resolved. It is indirectly referenced from required .class files

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s