I have a jar file named- ParseCSV-0.0.1-SNAPSHOT.jar and the contents of it are -
- META-INF/
- META-INF/MANIFEST.MF
- foo/
- foo/ReadCSV.class
- META-INF/maven/
- META-INF/maven/Test/
- META-INF/maven/Test/ParseCSV/
- META-INF/maven/Test/ParseCSV/pom.xml
- META-INF/maven/Test/ParseCSV/pom.properties
The main class is ReadCSV.class and it takes a CSV file (C:\Testting\ValidaResults.csv) as an input parameter. I am trying to execute the jar file from the command promt by running the following command-
java -jar . ParseCSV-0.0.1-SNAPSHOT.jar "C:\Testting\ValidationResult.csv"
But I am getting an error saying-
Error: Could not find or load main class foo.ReadCSVTest
What is going wrong here.