• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to run code given on page 3 of head first java  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Whenever i am trying to run below code in my System it is getting package.java.awt.events does not exist..


Help me ....
 
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The package is java.awt.event
 
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HINT: you should be checking the package name for any spelling mistakes.
 
Marshal
Posts: 56605
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

As far as I can remember the Party example from HFJ is incomplete and cannot be run as it stands. You probably mean you have a compiler error, whose cause has already been explained.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!