aspose file tools*
The moose likes Java in General and the fly likes comparable program counstructor not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "comparable program counstructor not found exception" Watch "comparable program counstructor not found exception" New topic
Author

comparable program counstructor not found exception

jyothsna ananthula
Ranch Hand

Joined: Jun 02, 2011
Posts: 33
hi please any body check below program.




for the above program i declared constructor but showing exception as a


Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: constructor Emp(int,java.lang.String)
location: class Emp
at JCDExample.main(JCDExample.java:44)
Java Result: 1
BUILD SUCCESSFUL (total time: 10 seconds)

but when i runned first time application it was executed and second time its not running successfully. if i delete at the line Emp e1= new Emp(60,"josh");
Emp and type once again Emp its executing.


what to do where i did mistake. let me know please.
vinayak jog
Ranch Hand

Joined: Apr 01, 2011
Posts: 81

Its running correctly as many times as i run
check it once again
jyothsna ananthula
Ranch Hand

Joined: Jun 02, 2011
Posts: 33
no i am using netbeans 6.8 i am unable to get it
jyothsna ananthula
Ranch Hand

Joined: Jun 02, 2011
Posts: 33
ok thanks i got it actually with employee name i have in another classes also in same pkg so it got error to me. no problem solved i changed that name in present class.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

jyothsna, can you please UseCodeTags next time? Thanks.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
jyothsna ananthula
Ranch Hand

Joined: Jun 02, 2011
Posts: 33
ok thanks
 
jQuery in Action, 2nd edition
 
subject: comparable program counstructor not found exception