Wise Folks,
I have an unusual compile error with my servlet.
I import java.util.* to make use of the HashMap class. The compile error arises when I attempt to declare and instantiate a HashMap. The compiler reports that it cannot find (mypackagename).HashMap. I'm unsure as to why it's looking for the HashMap class in my package rather than finding it in java.util where it lives.
When I attempt to import directly java.util.HashMap the compiler returns an error with the import.
I'm assuming this is a path issue. If so, I'd greatly appreciate any suggestions as to how I might go about investigating and/or fixing it.
Thanks,
Terwin
I have an unusual compile error with my servlet.
I import java.util.* to make use of the HashMap class. The compile error arises when I attempt to declare and instantiate a HashMap. The compiler reports that it cannot find (mypackagename).HashMap. I'm unsure as to why it's looking for the HashMap class in my package rather than finding it in java.util where it lives.
When I attempt to import directly java.util.HashMap the compiler returns an error with the import.
I'm assuming this is a path issue. If so, I'd greatly appreciate any suggestions as to how I might go about investigating and/or fixing it.
Thanks,
Terwin