I am having problem to run the main class from the jar.
Ant script has produced following folders:
MyProject(Somewhere in C:)
|
|
|____configuration(this contains properties/XML file)
|
|____dist(contains MyProject.jar)
|
|____lib(contains all other jars)
|
|____run(contains batch file to run MyProject.jar)
Inside run folder I have a batch file which reads like this:
java -jar ../dist/MyProject.jar;../lib/*.jar com.my.test.MainTest
Can somebody guide me. I just want to go to run folder and double click the .bat file and run the application.
I am getting
Exception in thread "main" java.lang.NoClassDefFoundError: MyProject/jar
Update
The new Error is:
The java class is not found: com.microsoft.sqlserver.jdbc.SQLServerException
Thanks...