I want to mention that I already read these threads:
Error: Could not find or load main class
What does "Could not find or load main class" mean?
and I found no solution to my problem. I have a jar file named BatchPricing.jar that includes a class named com.tools.batchpricing.Main. I know this for sure because I open the jar file with 7-zip and I see this class there.
When I run it on windows I activate the command:
java -Xmx300M -classpath BatchPricing.jar com.tools.batchpricing.Main %*
I run if from the folder that contains BatchPricing.jar. However, I still get the error:
Error: Could not find or load main class com.tools.batchpricing.Main
Do you know how I can resolve it?