I exported a jar file from Springsource Tools Suite, and when I tried executing it in the command line, I always get this error:
Exception in thread “main” java.lang.NoSuchMethodError: main
This is the command I input in the jar file though: java -cp ojdbc6.jar oracle.jdbc.driver.OracleDriver -jar ETS.jar
And I already set the main entry point to a class that has main method. Any suggestions?
See this link on how to set the application entry point in the manifest when packaging your application.
Basically you should have a manifest that identifies the main class.
http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html