facebook

MyEclipse support J2se1.5 completely? [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Comments
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #229189 Reply

    gzhuye
    Member

    Hi:

    does the newest MyEclipse support J2se1.5 completely?

    I’m using MyEclipse 3.8.4, but it seems not to support java1.5, for example, when List<String> used, it knows nothing about it and marks red wave line under it.

    give more advide

    Thanks

    Paul

    #229196 Reply

    Scott Anderson
    Participant

    Paul,

    Java language support for JDK 1.5 is provided only by Eclipse 3.1, not 3.0. Right now there is an Eclipse 3.1 milestone build (M6) that supports JDK 1.5, and we have a 3.8.4 Beta release that support 3.1M6 available in our download area. I’d suggest you keep your current installations and install the new Eclipse & MyEclipse builds in parallel to them so you can test and make sure they meet your needs.

    #229201 Reply

    gzhuye
    Member

    Thank you very much! I’ll do.

    #229207 Reply

    gzhuye
    Member

    Scott:

    After I reinstalled what you told, when I put : List<String> wordlist = new ArrayList<String>(); in java file

    IDE complains:

    The type List is not generic; it cannot be parameterized with arguments <String>

    Syntax error, parameterized types are only available if source level is 5.0

    The type ArrayList is not generic; it cannot be parameterized with arguments <String>

    Syntax error, parameterized types are only available if source level is 5.0

    My env setting:

    Installed IDEs: C:\Program Files\Java\jre1.5.0_01

    C:\>
    C:\>java -version
    java version “1.5.0_01”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
    Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode)

    C:\>echo %java_home%
    C:\Program Files\Java\jre1.5.0_01

    Possible somethng else wrong?

    Thanks for your helsps

    Paul

    #229215 Reply

    Scott Anderson
    Participant

    Paul,

    You need to be sure that Eclipse is picking JDK 1.5 to run with. You can set that on the commandline with:
    eclipse.exe -vm <path-to-jdk1.5-install>\bin\javaw.exe. You can see which JDK Eclipse launched with by
    navigating to Help > About Eclipse Platform > Configuration Details. Also, you’ll need to check your compiler
    settings at Window > Preferences > Java > Compiler and pay close attention to the “Compliance and Classfiles” setting.

    #229254 Reply

    gzhuye
    Member

    Scott:

    Thank you very much!

    I didn’t set :

    settings at Window > Preferences > Java > Compiler and pay close attention to the “Compliance and Classfiles” setting.

    It is ok now.

    Paul

    #283861 Reply

    Busher
    Member

    This message has not been recovered.

    #284458 Reply

    zhongxhua
    Member

    thanks very much,
    i have got the problem too

    #284459 Reply

    zhongxhua
    Member

    thanks very much,
    i have got the problem too

    #298039 Reply

    Hi I am using Java 1.4.2_03 and getting error
    for executing

    ArrayList<String> list = new ArrayList<String>();
    list.add(“One”);
    list.add(“Two”);
    list.add(“Three”);
    list

    Error is

    The type ArrayList is not generic; it cannot be parameterized with arguments <String>
    The type ArrayList is not generic; it cannot be parameterized with arguments <String>

    Do i have to install java 1.5 and jre 5.0?

    Please help requested

    #298085 Reply

    rmcvay
    Member

    Yes.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: MyEclipse support J2se1.5 completely? [Closed]

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