- This topic has 10 replies, 6 voices, and was last updated 15 years, 6 months ago by rmcvay.
-
AuthorPosts
-
gzhuyeMemberHi:
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
Scott AndersonParticipantPaul,
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.
gzhuyeMemberThank you very much! I’ll do.
gzhuyeMemberScott:
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_01Possible somethng else wrong?
Thanks for your helsps
Paul
Scott AndersonParticipantPaul,
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.
gzhuyeMemberScott:
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
BusherMemberThis message has not been recovered.
zhongxhuaMemberthanks very much,
i have got the problem too
zhongxhuaMemberthanks very much,
i have got the problem too
dilippatel999MemberHi I am using Java 1.4.2_03 and getting error
for executingArrayList<String> list = new ArrayList<String>();
list.add(“One”);
list.add(“Two”);
list.add(“Three”);
listError 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
rmcvayMemberYes.
-
AuthorPosts