Skip to content
Advertisement

cmd window does not recognize the classpath option

when I enter like

JavaScript

error occurs like this

JavaScript

What’s problem?

Advertisement

Answer

You appear to be using a Linux/Unix system, based on your error: zsh: command not found: mariadb-java-client-2.7.1.jar.

Your Java command therefore needs to use a colon :, not a semicolon ;.

Semicolons are the JAR separators used on Windows for the java command. But for Linux, it is the colon (and you can see this in the usage message: A : separated list of directories, JAR archives...).

Therefore, try this:

JavaScript

In your case, the semicolon is interpreted as a command separator – and therefore the next “command” after the ; is assumed to be mariadb-java-client-2.7.1.jar – which is why you get that specific “command not found” error.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement