There is a java source that connects to MsSQL. It compiles fine. In the debugger, it starts and runs.
When packing it in a jar (IDEA 11), and without it, it produces at the start of classNotFound on the line
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Command line launch:
java myapp -classpath "c:\Program Files\Java\jdk1.7.0_03\lib\sqljdbc4.jar"
or
java -jar myapp.jar -classpath "c:\Program Files\Java\jdk1.7.0_03\lib\sqljdbc4.jar"
Option with sqljdbc.jar instead, sqljdbc4.jar also does not channel. The libraries themselves on the specified path are and in the debug version work.
Tell me where to reset the brain?
Thank you in advance.