This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package problem ?" Watch "package problem ?" New topic
Author

package problem ?

satish limaye
Greenhorn

Joined: Jan 28, 2002
Posts: 4
Here is the dir structure
c:\java\suncert\OverLoadEx\OverLoadEx.java
When I try to compile it in the dir
c:\java\suncert\OverLoadEx java OverLoadEx.java
I get an error
OverLoadEx.java:1: 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"
Sheriff

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: package problem ?
 
Similar Threads
running a class in a package
packaging problem
package problem (Urgent !!!!!)
problem related to package
about compilation and JVM version