Results 1 to 5 of 5

Thread: How do I make eclipse 3.0.1 support new language features of JDK1.5?

  1. #1

    Thread Starter
    Banned debbie_82's Avatar
    Join Date
    Jan 2004
    Location
    inside a hollow void
    Posts
    104

    Question How do I make eclipse 3.0.1 support new language features of JDK1.5?

    I have just downloaded the latest eclipse version 3.0.1 and I also have the latest jdk1.5... and I've been encountering quite a number of problems.

    Eclipse it seems cannot understand the new language features.
    I have been trying to do a little bit of coding about the foreach loop construct (new to jdk1.5) and well eclipse always says syntax error.

    Is there anyway the syntax checker be updated to support java1.5 new language features?
    and it won't run...

    I did try doing that code on notepad so that syntax is not yet checked during that time and used the command line to execute my code and well that one worked.. so I guess the problem is eclipse itself..

    Is there some available patches for these? I don't know how to look for them... Even jbuilder has some problems with the jdk1.5 version... I don't know what to do.

    I can't see myself doing notepad and the command line all the time...

    P.S.
    How does eclipse process java source files anyway?
    Last edited by debbie_82; Nov 24th, 2004 at 10:41 PM.

  2. #2

    Thread Starter
    Banned debbie_82's Avatar
    Join Date
    Jan 2004
    Location
    inside a hollow void
    Posts
    104

    Additional question

    In the Preferences -> Java -> Compiler -> Compliance and Class Files

    There is an item there with Compiler Compliance Level
    and has drop down values... selected is 1.4... could this be the cause of the problem? that all source must comply with 1.4 thus 1.5 new lang features cannot be recognised?

    I'm just wondering.

  3. #3

    Thread Starter
    Banned debbie_82's Avatar
    Join Date
    Jan 2004
    Location
    inside a hollow void
    Posts
    104
    NVM

    I just read an article and well it says there that support for J2SE 1.5 "Tiger" will be supported in the next year's Eclipse release 3.1

    I guess I just have to refrain from using the new language features if I can...

  4. #4
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Or use another IDE...
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  5. #5
    New Member
    Join Date
    Dec 2004
    Posts
    1

    Thumbs up Re: How do I make eclipse 3.0.1 support new language features of JDK1.5?

    Or use an ANT build.xml file -- and ignore the syntax checking.
    Code:
    <project name="java15" default="all" basedir=".">
    	<target name="build">
    		<depend srcdir="."></depend>
    		<javac srcdir="." source="1.5">
    			<compilerarg value="-Xlint"/>
    		</javac>
    	</target>
    </project>
    Or take the plunge with 3.1Mn: eclipse-news-all-M4
    Last edited by _plj; Dec 27th, 2004 at 09:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width