Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 15th, 2001, 06:50 AM
kikkickme kikkickme is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 9 kikkickme User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"Ambiguous class: java.awt.List and java.util.List
private List ll;
"

The above error appear when i compile the java applet. I am not certain for the error and would like to know what the error is and how to correct this. Thanks!!

Comments on this post
JimmyGosling agrees!

Reply With Quote
  #2  
Old March 15th, 2001, 08:17 AM
waldthau waldthau is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Colorado
Posts: 46 waldthau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
This just means that you have inported both java.awt.List and java.util.List and the compiler does not know which one you are trying to use when you specify "private List ..."

You are probably importing java.awt.* and java.util.* so you are getting both List classes from the two different packages. There are two ways of fixing this:

One, import only the classes you need instead of the whole package. EG - import java.util.List; instead of import java.util.*;

Two, specify the entire package name when you declare your List object. If you are really trying to use java.util.List and NOT java.awt.List try: "private java.util.List ..." instead of "private List ..."

Hope that helps.
__________________
- MW

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > compiling error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway