This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Cannot find java.util.Map interface in Java SE 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cannot find java.util.Map interface in Java SE 6" Watch "Cannot find java.util.Map interface in Java SE 6" New topic
Author

Cannot find java.util.Map interface in Java SE 6

chinomso ikwuagwu
Greenhorn

Joined: Mar 28, 2006
Posts: 11
My code was written in java SE 5. After setting source level and library source level to Java SE 6
and making the necessary changes, I discovered that references to the Map interface both in my
code and in the Java API for Java SE 6 were flagged by my IDE with the following error
(Cannot find symbol, symbol=map, location=package java.util).
Also there was no source for the Map interface in the Java API for Java SE 6.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41141
    
  45
(Cannot find symbol, symbol=map, location=package java.util).

Java is case-sensitive, so you need to spell it correctly.

http://java.sun.com/javase/6/docs/api/java/util/Map.html


Ping & DNS - my free Android networking tools app
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

My code was written in java SE 5. After setting source level and library source level to Java SE 6 ...



I would be interested to know how this original code worked in Java 5 !!

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot find java.util.Map interface in Java SE 6
 
Similar Threads
Unable to utilize method on Character?
Session Tracker
missing classes
running a servlet without IDE
Cannot Find Symbol