I am trying to run my .jar from cmd but it returns the error ClassNotFoundException. If looked into other questions on StackOverflow but couldnt find a working solution for me. All the questions were using a package which I dont.
My command looks like this:
java -cp Path\To\My\Jar\Formatter.jar Formatter.java
In my folder there is the Formatter.jar and Formatter.java no .class I have tried my command in PowerShell and it works just fine...
EDIT: Fixed typos