Win a copy of Functional Reactive Programming this week in the Other Languages 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: 24212
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