Your build path is not configured properly.
If you take a look under Scala Library[...]
you have scala-library.jar
we can only see one top-level package scala
. There should be numerous other packages besides that. (Ruled Out)
I would recommend you follow these steps
- Right-click project, build-path, Java-build-path, Libraries and make sure that the correct library is referenced there.
- If it is the one you need, Try to remove this library and add it again, then
clean
and re-fresh the project. Also try this step in a fresh workspace.(something must have messed up this workspace ) - Lastly. Goto the
path D:\Eclipse For Scala\configuration\org.eclipse.osgi\bundles\286\1\.cp\lib
and verify the sizes of the jars there. There should be 6 jars there and the size of scala-library jar should be around 6.8M. If size is smaller, consider re-downloading