I've just completed quite a large project using IntelliJ and said I'd give the command line statement for people without an IDE to run it (the project will be run on different machines by different people etc). I haven't used the command line in a while and so I'm a bit rusty. I've gotten a NoClassDefFoundError:wrong name and I've been looking at questions on S/O such as Why am I getting a NoClassDefFoundError in Java? but these don't seem to fix my problem. I'm using quite a few external libraries but I have them correctly imported when trying to run. There are many classes compiled but only one will be run so I presume I only run the "java" command on the Main class
java -cp .;poi-3.17/lib/comms-codec-1.10.jar;poi-3.17/lib/commons-collections4-4.1.jar;poi-3.17/lib/commons-logging-1.2.jar;poi-3.17/lib/junit-4.12.jar;poi-3.17/lib/log4j-1.2.17.jar;poi-3.17/ooxml-lib/curvesapi-1.04.jar;poi-3.17/ooxml-lib/xmlbeans-2.6.0.jar;poi-3.17/poi-3.17.jar;poi-3.17/poi-ooxml-3.17.jar bin/com/company/Main
Above is what I've been trying to get working so any suggestions on what I might be doing wrong would be appreciated
The whole exception is "Error: Could not find or load main class Main Caused by: java.lang.NoClassDefFoundError: com/company/Main (wrong name: Main)"
Note, I'm using windows