Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
chinomso ikwuagwu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(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
 
Henry Wong
author
Marshal
Pie
Posts: 21504
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic