0

Am running Eclipse on Mac OS X but for some crazy reason it just can't find my Java base classes like ArrayList etc... I just the Install JRE under Preferences and there is a valid JDK that got all the classes correct like point to classes.jar etc... Any idea what can be wrong? And yes I did do a Clean, it just can't build.

Eclipse Helios, latest Java 6, Snow Leopard Mac OS X

skaffman
  • 398,947
  • 96
  • 818
  • 769
Lennie
  • 1,999
  • 4
  • 27
  • 42

1 Answers1

1

It is likely that your Eclipse uses the Java JRE and not the JDK. You need to point Eclipse to where your JDK is installed.

Go to Preferences -> Java -> Installed JREs and Add your JDK directory. Then make sure that you uncheck (or remove) the previous JRE. That should allow you to see the base classes.

Eugen
  • 8,523
  • 8
  • 52
  • 74