[Solved] How come command line isn’t recognizing this java command?


You’re giving it a classpath, but not the name of the class to execute. You’re also only including the jar file on your classpath – not the directory containing your class file.

So to repeat my answer from the other question:

java -cp .;cs2.jar CB

(Run from the directory containing both CB.class and cs2.jar.)

1

solved How come command line isn’t recognizing this java command?