| Author |
Message |
|
|
Post subject: MyEclipse support J2se1.5 completely? [Closed]
Posted: May 06, 2005 - 06:47 PM
|
|
Registered Member


Joined: Aug 12, 2004
Posts: 39
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 06, 2005 - 08:12 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
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. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 06, 2005 - 09:02 PM
|
|
Registered Member


Joined: Aug 12, 2004
Posts: 39
|
|
Thank you very much! I'll do. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 06, 2005 - 10:01 PM
|
|
Registered Member


Joined: Aug 12, 2004
Posts: 39
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 07, 2005 - 01:38 AM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
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. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 09, 2005 - 03:58 PM
|
|
Registered Member


Joined: Aug 12, 2004
Posts: 39
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 10, 2008 - 09:00 AM
|
|
Joined: Apr 10, 2008
Posts: 1
|
|
| 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 Paul |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 26, 2008 - 04:44 AM
|
|
Joined: Apr 26, 2008
Posts: 2
|
|
thanks very much,
i have got the problem too |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 26, 2008 - 04:44 AM
|
|
Joined: Apr 26, 2008
Posts: 2
|
|
thanks very much,
i have got the problem too |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 30, 2009 - 09:21 PM
|
|
Joined: Apr 30, 2009
Posts: 1
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 01, 2009 - 08:15 PM
|
|
Registered Member


Joined: Sep 17, 2004
Posts: 217
|
|
Yes. |
_________________ Ray
Just another MyEclipse user
|
| |
|
|
|
 |
|
|