Cheers!
RSR
Originally posted by Anjali S Sharma:
While it is working on her machine it is giving the following compile time error is other machines (using J2se 1.5)
...
We are using eclipse 3.2.2
Originally posted by Maneesh Godbole:
What compliance level have you set on Eclipse?
Originally posted by Anjali S Sharma:
Are you referring to "Profile Compliance and Validation" under Project-->Properties.
Originally posted by Maneesh Godbole:
No.
My bad. I should have been more explicit.
I meant Project->Properties->Java Compiler->JDK Compliance.
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Originally posted by Bill Shirley:
provide the full text of the actual error
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by ajju Krishnamurthy:
on Eclipse,
windows -->preferences -->java->> Installe jre s -
Select the jre and set the jre5.0 over there.
Hope this will help you.
Regards
Ajay Krishnamurthy
Originally posted by Maneesh Godbole:
Strange.
Try turning off Generic warnings by eclipse.
Originally posted by Anjali S Sharma:
The type Comparable is not generic; it cannot be parameterized with arguments <String>
this error is coming at the very first line (package declaration) of the class.
[ November 14, 2008: Message edited by: Campbell Ritchie ]
Andrew Fitzpatrick wrote:Hi, I just got exactly the same problem and managed to fix it.
The problem is classpath related and to do with the order of jar and class files. To solve right click on the project in Eclipse and select properties, click the Order and Export tab. Now use the buttons on the right hand side to move the java runtime up so that it appears before all library jar files, ensure your project files still precede this library though.
A refresh on the project should see it rebuilt without issue.
Andrew Fitzpatrick wrote:Hi, I just got exactly the same problem and managed to fix it.
The problem is classpath related and to do with the order of jar and class files. To solve right click on the project in Eclipse and select properties, click the Order and Export tab. Now use the buttons on the right hand side to move the java runtime up so that it appears before all library jar files, ensure your project files still precede this library though.
A refresh on the project should see it rebuilt without issue.
Thanks and Regards
Don't get me started about those stupid light bulbs. |