天天看點

sts打可執行jar的問題

sts3.6.1的版本 調用fatjar來打可執行jar檔案比較快 

下載下傳附件中的32版本的fatjar.jar檔案 放到 sts3.6.1\sts-bundle\sts-3.6.1.RELEASE\plugins中 然後删除 \sts3.6.1\sts-bundle\sts-3.6.1.RELEASE\configuration中的 org.eclipse.update下的 platform.xml檔案 重新開機sts就OK啦      

0.0.32适合eclipse4.4以後的版本哦,好像是某個高手修改多滴

打包前 修改 ConfigProperties中的代碼

public static String configFile = "conf.properties";   in = ConfigProperties.class.getClassLoader().getResourceAsStream(configFile);             //in = new BufferedInputStream(new FileInputStream (configFile));

不然會提示找不到檔案滴

當然在eclipse中執行的話還是換回來 

繼續閱讀