java - Error: Could not find or load main class during jar file execution in command prompt -


i have written java program in creating database connection using jdbc-odbc driver.

i have created manifest file looks :

manifest-version: 1.0 main-class: com.unisys.sql.casepartitionextractor class-path: . rt.jar 

rt.jar used database connectivity.

i ran following command create jar:

jar -cvfm abc.jar manifest.txt \bin\com\unisys\sql\*.class \bin\com\unisys\connections\*.class 

when run jar in command prompt, it's showing following error:

error: not find or load main class com.unisys.sql.casepartitionextractor 

main class is: casepartitionextractor.java
databse connection class: odbcconnection.java

command used run jar:

java -jar d:\eclipse_os2200\caseseparation\abc.jar 

directory structure:

workspace->project_name->                         bin/com/unisys/connections/odbcconnection.class                         bin/com/unisys/sql/casepartitionextractor.class                         manifest.txt                         rt.jar 

i not able figure out wrong in this. can me figure out?

inside jar look:

inside jar folder structure


Comments