MyEclipse: MyEclipse support J2se1.5 completely? [Closed] gzhuye - May 06, 2005 - 06:47 PM Post subject: MyEclipse support J2se1.5 completely? [Closed]
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
Paulsupport-scott - May 06, 2005 - 08:12 PM Post subject:
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.gzhuye - May 06, 2005 - 09:02 PM Post subject:
Thank you very much! I'll do.gzhuye - May 06, 2005 - 10:01 PM Post subject:
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)
Paulsupport-scott - May 07, 2005 - 01:38 AM Post subject:
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.gzhuye - May 09, 2005 - 03:58 PM Post subject:
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.
PaulBusher - Apr 10, 2008 - 09:00 AM Post subject:
gzhuye wrote:
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
I got the same problem.And now I got it,thank you Scott and Paulzhongxhua - Apr 26, 2008 - 04:44 AM Post subject:
thanks very much,
i have got the problem toozhongxhua - Apr 26, 2008 - 04:44 AM Post subject:
thanks very much,
i have got the problem toodilippatel999 - Apr 30, 2009 - 09:21 PM Post subject:
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 requestedrmcvay - May 01, 2009 - 08:15 PM Post subject:
Yes.