运行程序时MAIN class 处应填什么?我填的是Appstu.appstu.对吗?还用创建类库吗?
运行后错误信息如下:
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at appstu.util.CommonaJdbc.getCon(CommonaJdbc.java:12)
at appstu.util.CommonaJdbc.<init>(CommonaJdbc.java:7)
at appstu.AppStu$1.initAndRecLog(AppStu.java:127)
at appstu.AppStu$1.run(AppStu.java:96)
java.lang.NullPointerException
at appstu.AppStu$1.run(AppStu.java:117)