It's not a secret anymore!
The moose likes Beginning Java and the fly likes package problem ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package problem ?" Watch "package problem ?" New topic

package problem ?

satish limaye

Joined: Jan 28, 2002
Posts: 4
Here is the dir structure
When I try to compile it in the dir
c:\java\suncert\OverLoadEx java
I get an error OverLoadEx clashes with package of same name
Here is the file :
class OverLoadEx
public static void main(String args[])
int x;
long y;
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
So it thinks that there might be a confusion between the package (subdirectory) with that name - or the class with that name.
Change one of them.
I agree. Here's the link:
subject: package problem ?
It's not a secret anymore!