This content has been marked as final. Show 1 reply
java -classpath lib/test.jar;lib/test2.jar src/com/company/testAssuming the classpath is correct there are several things wrong with that.
1. The class argument to 'java' is a classname. That's a filename. Classnames have package qualifiers separated bt dots. Filenames have directories separated by slashes.
2. Classnames by convention start with a capital letter, so 'test' should surely be 'Test', unless your code code says 'public class test'.
3. Unless your class is in a package called 'src.com.company' it is wrong anyway. I suspect it should be 'com.company.Test' but without seeing your source code it is impossible to know.