Reputation: 47
My screen:
And Lib folder:
This is my run.bat:
@echo off
title Tracer
"C:\Program Files (x86)\Java\jdk1.7.0\bin\java" -Xmx256m -cp bin; lib\mysql-connector-java-5.1.25-bin.jar Mains
pause
Mains.java is located in src, and is findable.
What is the problem?, Trying to install mysql for the first time!
Upvotes: 0
Views: 1444
Reputation: 178253
Your -cp
argument needs to be without spaces. Change
-cp bin; lib\mysql-connector-java-5.1.25-bin.jar
to
-cp bin;lib\mysql-connector-java-5.1.25-bin.jar
The error message indicated that your class path was treated as just "bin;" and the other part (the path to the jar) was treated as the class to run.
Shells and the Windows command prompt usually treat spaces as separators between arguments, which is why removing the space is recommended here.
Upvotes: 1