Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot resolve symbol

 
mik hengst
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting that error when I compile this code:

The class being extended compiles fine. The Order.class file is in the same directory. What is going wrong???

thanks
 
Sam Zou
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you specify the error you got ???

Thanks
 
mik hengst
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error at the command line is cannot resolve symbol. It points at- extends Order, and all the references to super.xxx.
If it helps I could post the Order code...

thanks
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Order.class file is in the same directory.
This is not sufficient. Does Order belongs to the same package as OrderWithCharge?
You could also post the exception stack trace. It is often very informative.
W.
[ November 28, 2002: Message edited by: Wilfried LAURENT ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic