Also, please show us the classpath you are using in that application.
Joined: Apr 03, 2012
Stack trace is:
Exception in thread "main" java.lang.NoClassDefFoundError: SelectApp
Caused by: java.lang.ClassNotFoundException: SelectApp
at java.security.AccessController.doPrivileged(Native Method)
Could not find the main class: SelectApp. Program will exit.
please show us the classpath you are using in that application
mysql-connector-java-3.1.12.jar(It is in same directory as program)
Let's save some time, we both know that it isn't. And since the jar is now the only thing in your classpath, SelectApp isn't in the classpath. And therefore the JVM can't load it, and therefore you get that message.
So fix your classpath so that it contains the folder where SelectApp is located and also the JDBC Connector jar file.