aspose file tools
The moose likes Beginning Java and the fly likes Class Already Defined Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 19232

Is there another file with a class called Test?


SCJP 1.4 - SCJP 6 - SCWCD 5
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: 32833
    
    4
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Class Already Defined
 
Similar Threads
I am confused
Using Objects as Parameters
Using Objects as Parameters
Using Objects as Parameters
Using Objects as Parameters - an example