File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Class Already Defined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Class Already Defined" Watch "Class Already Defined" New topic
Author

Class Already Defined

vinay kalal
Greenhorn

Joined: Sep 19, 2010
Posts: 9
I am facing one problem in this type of pro-gramme where i use Class name as a Return type or pass object as an argument like here , i am getting same error(the class already defined), i am using eclipse.
Kiaamaa Liammes
Ranch Hand

Joined: Oct 03, 2009
Posts: 32

the code compiles fine , in eclipse using Java 1.6


SCJP ,SCWCD
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Is there another file with a class called Test?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mina Daoud
Ranch Hand

Joined: Sep 24, 2010
Posts: 88
Can you check if your package has another file with the same class name?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39079
    
  23
Welcome to the Ranch Mina Daoud
Mina Daoud
Ranch Hand

Joined: Sep 24, 2010
Posts: 88
Campbell Ritchie wrote:Welcome to the Ranch Mina Daoud

Thanks Campbell Ritchie
 
GeeCON Prague 2014
 
subject: Class Already Defined