I tried to test new Java 1.5.0 syntax. The following program compiles and runs from a command window using jdk 1.5.0 compiler. I tried to specify this JDK as a default JRE in Eclipse 2.1, but compilation still gives me errors complaining about “import static” syntax.
import static java.lang.System.*;
public class HelloWorld {
public static void main(String[] args) {
out.println(“Hello, Wld…..”);
}
}
How to teach Eclipse Java 1.5 syntax?
Thanks,
Yakov