連接數據庫的工具類中用方法測試連接報
java.lang.NoSuchMethodError: main
Exception in thread "main"
以爲是使用myeclipseJDK的事於是引入安裝的JDK版本調一致還是報這個錯,又新建工程測試報
creation of element failed
org.eclipse.core.internal.registry.configurationelementhandle。。。。
查資料解決辦法:MyEclipse的安裝路徑下的configuration文件下有個org.eclipse.update這樣的文件夾,刪除之,重啓MyEclipse,ok了