When compiled, it gives error: cannot find symbol, although everything is in one place

enter image description here

javac -cp . Bellsprout.java javac -cp . Bellsprout.java doesn't work either

How to convey to him where these classes?

Closed due to the fact that off-topic participants insolor , Suvitruf , ߊߚߤߘ , mymedia , Eugene Krivenja 19 Oct '17 at 7:09 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - insolor, Suvitruf, mymedia, Eugene Krivenja
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Instead of a picture, give the text of the error in question - Komdosh
  • javac -cp . Bellsprout.java javac -cp . Bellsprout.java exactly the same errors or lose other classes? - Sergey Gornostaev
  • Errors are the same - mishkamashka

1 answer 1

After removing the package declaration line and the following command in all classes: javac -sourcepath . -cp <нужный jar-архив> *.java javac -sourcepath . -cp <нужный jar-архив> *.java compiled