the type java.io.FilterOutputstream cannot be resolved. error

Viewed 3470

I'm new to coding. while creating a simple class, I got this error and somehow, many of my previous java projects on Eclipse that worked fine before got the same error (and some new errors). now most of my codes have red cross on them, how can I fixed it.

the type java.io.FilterOutputstream cannot be resolved. It is indirectly referenced from a required .class file; It says on the top of the driver classes

UPDATE: -I tried Project> Clean... and it resolved the problem for most files, but not all of them.

-I have the jdk.14 and its library installed.

2 Answers

This looks like the JVM is missing.

  1. Check Menu: Window -> Preferences -> Java -> Installed JREs You should have some versions installed there. If not, install a JDK for development, and optionally JREs. enter image description here

  2. Check the project's setting: Right-Click on Project -> Properties -> Java Build Path -> Libraries If there is no Java entry, on the right side, click "Add Library" -> JRE System Library to have the default ones shown. enter image description here

I removed the project from ellipse and then added it again...that resolved my error

Related