This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Class ambiguous answers
Posted by Kenya-1 on May 23, 2001 at 2:44 PM
Hi, I dont know whether you already have this question answered but I guess a lottle insight might help. You will receive the class ambiguous error anytime you import or refer to a class with the same name but different types. For example if you are writing a server app and import java.util.Date; import java.sql.Date; If you use Date in your program you will receive a class ambiguous error. To solve this, always use the full class name in your app. java.util.Date date = new java.util.Date(); java.sql.Date sqlDate = new java.sql.Date(resultset.getLong("TIMESTAMPVALUE")); I hope this helped. Elvis > i am writing a program for a chat application using rmi.while compilimg the client side program i am geting an error.i have used the"List"class to display the current number of users online.the displayed error message is: > "class<> List not found in void ActionPerformed(java.awt.event.ActionEvent)." > can anyone please find me a solution to this error.i will be highly obliged to receive a solution from anyone. > thanking you > arun
Replies:
|