Thanks all reply, most compilation error are resolved once I copy tools.jar from my windows machine to my mac machine. However, ant not work because Mac JDK don't come with tools.jar and I need to update build.xml myself.
The reminding error is com.sun.jini.jeri.internal.runtime.Util.java using variable name "enum" which trigger compilation error of eclipse compiler, may be this is specific behaviour of eclipse compiler? Or all 1.5 up jdk will have that error?
