Yup, what Paul said. Compiling fine from command line indicates your environment variables are good, compiling errors in an
IDE generally mean you need to add those directories and .jar files where your JDK is into the IDE.
Complete process is Configure->Options->JDK Profiles, select the JDK you have installed, then click edit. If all the stuff isn't in there, you'll want to add path and add package.
Mine has:
c:\jdk1.4\jre\lib\rt.jar
c:\jdk1.4\jre\lib\i18n.jar
c:\jdk1.4\lib\dt.jar
c:\jdk1.4\lib\tools.jar
c:\jdk1.4\jre\lib\ext\dnsns.jar
c:\jdk1.4\jre\lib\ext\ldapsec.jar
c:\jdk1.4\jre\lib\ext\sunjce_provider.jar
...
Should get you set.
Thanks Paul
Jason