facebook

How to use JDK 1.5 compiler in Eclipse

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #207726 Reply

    Yakov Fain
    Member

    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

    #207730 Reply

    Riyad Kalla
    Member

    Yakov,
    Your question is really out of the scope of these forums (Support for users of the MyEclipse product), but to get you on the right track, what you are looking for is the ‘Cheeta’ series of plugins for Eclipse 3.0 that are introducing JDK 1.5 support into the IDE.

    This link should get you started: http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-core-home/r3.0/main.html#updates

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to use JDK 1.5 compiler in Eclipse

You must be logged in to post in the forum log in