This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could compile but not able to run

 
Siva kandasamy
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
See the code below.
I could able to compile but not able to run.
Getting the following error.
java TestBed$Tester
Tester: Undefined variable
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

java TestBed$Tester
Tester: Undefined variable

Your shell is trying to expand "$Tester" as a UNIX shell variable. You need to escape the special '$' character with a '\', like
java TestBed\$Tester
 
Siva kandasamy
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Ernest.
-siva
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic