"TPCCRunner.Loader" Displayed When TPC-C Is Used to Load Data
Symptom
After the java -cp bin/:lib/mysql-connector-java-5.1.7-bin.jar iomark.TPCCRunner.Loader conf/example/mysql/loader.properties command is run, the message "Error: Could not find or load main class iomark.TPCCRunner.Loader" is displayed.
Key Process and Cause Analysis
The specified main class cannot be found in the classpath. You need to set a correct classpath.
Conclusion and Solution
When running the data loading command in this case, add the name of the JAR package to the directory. Example command:
java -cp bin/TPCC_CMCC_v2.jar:lib/mysql-connector-java-5.1.7-bin.jar iomark.TPCCRunner.Loader conf/example/mysql/loader.properties
Parent topic: MySQL