Portal Compile error

Hi All,
I have simple problem , after installing and setting portal development, while trying to compile a portlet I get the following error:

BUILD FAILED
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Unable to find a javac compiler

Has anyone had this issue?

My bad, java_home wasnt added correctly to xp’s environment variables…working now