Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
    Bookmark Topic Watch Topic
  • New Topic

cannot find symbol - compiler error?

Anuradha Prasanna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have a java pgm, "" in "C:\MyProjects\beerV1" folder

and the "BeerExpert.class" file in "C:\MyProjects\beerV1\classes\com\example\model" folder

which contains,

package com.example.model;

so when i try compiling the "" as below i get the, "cannot find symbol" error as below,

C:\MyProjects\beerV1>javac -cp classes cannot find symbol
symbol : class BeerExpert
location: class test
new BeerExpert();

1 error

can anyone please tell me how to compile the "" file, which uses the "BeerExpert.class" file?
Henry Wong
Posts: 21777
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    Bookmark Topic Watch Topic
  • New Topic