I'm on Windows and I have a java class file called WebCrawler.class located inside a folder. Also in this folder is a jar file called commons-validator-1.6.jar, and WebCrawler uses functionality from that jar file. WebCrawler is part of a package called cloud.simplecrawl. I navigate to that folder via command line and compile with:
javac -cp commons-validator-1.6.jar WebCrawler.java
Compilation happens just fine.
Then, I want to run that program, WebCrawler.class, but I can't figure out the exact syntax for the java call, and I feel like I've tried everything. I know it should be some form of:
java -cp <something here?> commons-validator-1.6.jar Webcrawler
But I can't figure it out! Please help!