aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 35241
    
    7
(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


Android appsImageJ pluginsJava web charts
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16687
    
  19

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)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Cannot find java.util.Map interface in Java SE 6
 
Similar Threads
Session Tracker
Unable to utilize method on Character?
running a servlet without IDE
missing classes
Cannot Find Symbol