Spring針對 Eclipse Plugin
http://springide.org/blog/2008/11/30/springone-221-release-available/
2009年1月8日 星期四
2008年12月15日 星期一
2008年11月5日 星期三
Fat-jar -- 把全部的jar打包成一個可以執行的jar包含lib
可以從Eclipse的選單,help-> software updates -> Find and Install -> Search for new features to install -> new remote site
會跳出一個輸入對話窗,要求plugin的名字和更新的來源,輸入如下:
Name: Fat Jar
URL: http://kurucz-grafika.de/fatjar
它就會幫你全部打包成一個xxx.jar檔,並放置於你的Project的根目錄下。
這個xxx.jar檔無論放在什麼位置,應該都是雙點便可執行的。
也可以在console下輸入java -jar xxx.jar 來執行它。
Reference:
http://redbug.twbbs.org/index.php/2008/07/28/397
Java World
http://www.javaworld.com.tw/jute/post/view?bid=20&id=111801&sty=1&tpg=1&age=0
會跳出一個輸入對話窗,要求plugin的名字和更新的來源,輸入如下:
Name: Fat Jar
URL: http://kurucz-grafika.de/fatjar
它就會幫你全部打包成一個xxx.jar檔,並放置於你的Project的根目錄下。
這個xxx.jar檔無論放在什麼位置,應該都是雙點便可執行的。
也可以在console下輸入java -jar xxx.jar 來執行它。
Reference:
http://redbug.twbbs.org/index.php/2008/07/28/397
Java World
http://www.javaworld.com.tw/jute/post/view?bid=20&id=111801&sty=1&tpg=1&age=0
2008年5月2日 星期五
eclipse Deployment failure
前幾天發現Deployment failure 的問題,出現以下錯誤訊息
Deployment failure on Tomcat 5.x. Could not copy all resources to E:\javatool\Java\Tomcat 5.5\webapps\web. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at E:\javatool\Java\Tomcat 5.5\webapps\web
原因有可能是eclipse 包了不存在的JAR 檔,解決方法:確認jar files並重新reference jar files 設定
Deployment failure on Tomcat 5.x. Could not copy all resources to E:\javatool\Java\Tomcat 5.5\webapps\web. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at E:\javatool\Java\Tomcat 5.5\webapps\web
原因有可能是eclipse 包了不存在的JAR 檔,解決方法:確認jar files並重新reference jar files 設定
2008年1月23日 星期三
Ubuntu 7.10安裝EclipseME
最近忽然想研究一下J2ME,所以就找了一下資料,最後決定用EclipseME 來開發因為我都用Eclipse來開發不太想灌第二套的IDE,所以下列將提供我安裝的經驗。
首先我們至Sun 安裝WTK (Ubuntu 英文版 6.x版有測試過)或是其他的模擬器,當然也可以使用套件安裝,我這邊是使用自行下載安裝。本文下載sun_java_wireless_toolkit-2_5_1-linux.bin至/opt/
輸入:
會出現是否接受 license 的規定(當然是按y)。
些下來會出現一些安裝訊息,擷取片斷資訊如下所示供大家參考
Do you agree to the above license terms? [yes or no] y
Testing /usr/X11R6/bin/java...
A suitable Java interpreter was detected
0) Use /usr/X11R6/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]: 0
Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.1 for CLDC.
[ default is /opt/WTK2.5.1 ]:
Installation directory is /opt/WTK2.5.1
....
『省略』
....
Check for Product Updates? [yes or no] y
Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
/opt/y/
JVM Folder
/usr/X11R6/bin/
Check for Program Updates
Enabled
Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings .
1) Cancel the installation.
Select a choice [0-1]: 0
然後在按照官方網站的設定去Update和設定,即可Eclipse中在使用EclipseME,因為官方網站所提供的安裝方法很詳細,所以不在這邊再做介紹。
下載antenna.jar
http://antenna.sourceforge.net/
下載proguard
http://proguard.sourceforge.net/
簡體版教學
http://www.cnjm.net/eclipseme/docs/installation.html
PS:我的Eclipse Platform Version: 3.3.1.1
首先我們至Sun 安裝WTK (Ubuntu 英文版 6.x版有測試過)或是其他的模擬器,當然也可以使用套件安裝,我這邊是使用自行下載安裝。本文下載sun_java_wireless_toolkit-2_5_1-linux.bin至/opt/
- 安裝WTK
$ cd /opt/
輸入:
$ sudo sh sun_java_wireless_toolkit-2_5_1-linux.bin
會出現是否接受 license 的規定(當然是按y)。
些下來會出現一些安裝訊息,擷取片斷資訊如下所示供大家參考
Do you agree to the above license terms? [yes or no] y
Testing /usr/X11R6/bin/java...
A suitable Java interpreter was detected
0) Use /usr/X11R6/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]: 0
Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.1 for CLDC.
[ default is /opt/WTK2.5.1 ]:
Installation directory is /opt/WTK2.5.1
....
『省略』
....
Check for Product Updates? [yes or no] y
Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
/opt/y/
JVM Folder
/usr/X11R6/bin/
Check for Program Updates
Enabled
Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings .
1) Cancel the installation.
Select a choice [0-1]: 0
然後在按照官方網站的設定去Update和設定,即可Eclipse中在使用EclipseME,因為官方網站所提供的安裝方法很詳細,所以不在這邊再做介紹。
下載antenna.jar
http://antenna.sourceforge.net/
下載proguard
http://proguard.sourceforge.net/
簡體版教學
http://www.cnjm.net/eclipseme/docs/installation.html
PS:我的Eclipse Platform Version: 3.3.1.1
訂閱:
文章 (Atom)