Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

comparable program counstructor not found exception

 
jyothsna ananthula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its running correctly as many times as i run
check it once again
 
jyothsna ananthula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no i am using netbeans 6.8 i am unable to get it
 
jyothsna ananthula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20552
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jyothsna, can you please UseCodeTags next time? Thanks.
 
jyothsna ananthula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic