currently system
----------------------------------------------------------
Error Message: Illegal memory access. [54] ----I couldn't find any thing release notes of 27.4 update
Version BEA JRockit(R) R27.4.0
C Heap : Good; no memory allocations have failed
StackOverFlow: 0 StackOverFlowErrors have occured
OutOfMemory : 0 OutOfMemoryErrors have occured
-----------------------------------------------------------
I couldn't find jcaptcha problem for jrockit.10158.dump.
For BEA
The paper describes some possible solutions to stack overflow errors.
at http://edocs.bea.com/jrockit/geninfo/diagnos/crash.html#wp998430
But I find some body have same problem,too.
Maybe we can try it to solve the problem.
1) Try the latest version of JRockit (Version BEA JRockit(R) R27.5.0 )
2)
I first tried disabling JIT optimizations but that didn't help
I then changed GC to single generational (-Xgc:singlecon) and that seems to have fixed the problem
References
http://forums.bea.com/thread.jspa?threadID=300004611
For JCaptcha Framework
In JCaptcha Site have some Issue Navigator.
3) May be we could try to give more than 4M to JVM!!
-Xmx4M !!
References
http://forge.octo.com/jcaptcha/jira/browse/FWK-64
2008年3月13日 星期四
2008年1月27日 星期日
Ubuntu 7.10安裝Qt Eclipse Integration for C++
嘗試在LINUX 中安裝QT,忽然發現Eclipse可以整合QT所以就去官方網站看了一下資料,提供我安裝的步驟給大家參考。
參考資料
http://trolltech.com/developer/downloads/qt/eclipse-integration-download
http://trolltech.com/developer/downloads/qt/qteclipse-installmanual
http://www.cppblog.com/oomusou/archive/2006/11/11/15020.html
http://vertex.javaeye.com/blog/monthblog/2006-07?show_full=true
- 安裝minGW
$sudo apt-get install mingw32 mingw32-binutils mingw32-runtime
- 首先先安裝CDT
- 安裝QT
參考資料
http://trolltech.com/developer/downloads/qt/eclipse-integration-download
http://trolltech.com/developer/downloads/qt/qteclipse-installmanual
http://www.cppblog.com/oomusou/archive/2006/11/11/15020.html
http://vertex.javaeye.com/blog/monthblog/2006-07?show_full=true
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
2008年1月21日 星期一
Ubuntu 7.10 下安裝VirtualBox
目前所有軟體還沒有100%支援Linux,所以有時候會造成一些操作上的不便,和有些無解的問題需要Windows因此建議安裝虛擬機器來切換作業系統,已減少不便之處。
可先至官方網站下載最新的VirtualBox,以我為例下載檔案為virtualbox_1.5.4-27034_Ubuntu_gutsy_i386.deb並放置/home中。
然後先安裝一些套件,以方便安裝VirtualBox。
終端機輸入:
然後到VirtualBox安裝包的目錄(/home)
終端機輸入:
開始執行安裝
終端機輸入:
使用者加到 vboxusers 的 group 去
終端機輸入:
紅色字體輸入你的使用者名稱
Ubuntu 7.10中預設關閉usbfs的支援,會導致VirtualBox出現以下錯誤:
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.
將最後四行的#去掉,如下所示:
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
設定完後,重啟系統,設定才會生效。就不會再出現錯誤訊息了,也能夠正常使用usb裝置了。
接下來就可以按照一般程序開始安裝xp了
補充:
開啟virtualbox選擇設定值->分享資料夾
新增一個資料夾
假設資料夾為xyz(個人習慣放在home的目錄裡或桌面)
設定好資料夾後啟動虛擬xp
點選開始->執行輸入net use z: \\vboxsvr\xyz
z為想設定的槽
打開我的電腦後就會看見多了一個網路磁碟z(z為所設定的槽代號)
參考
http://blog.pixnet.net/Ubuntu/post/8524747
virtualbox教學可參考
http://mmpo.pcadsl.com/mmpo/windows_software/virtualbox/
參考資料
http://ubuntucookbook.com/recipes/install-virtualbox-on-ubuntu.html
http://www.wmfield.idv.tw/496
可先至官方網站下載最新的VirtualBox,以我為例下載檔案為virtualbox_1.5.4-27034_Ubuntu_gutsy_i386.deb並放置/home中。
然後先安裝一些套件,以方便安裝VirtualBox。
終端機輸入:
$ sudo apt-get install libxalan110 libxerces27
$ sudo apt-get install build-essential linux-headers-`uname -r`然後到VirtualBox安裝包的目錄(/home)
終端機輸入:
$ cd /home
開始執行安裝
終端機輸入:
$ sudo dpkg -i virtualbox_1.5.4-27034_Ubuntu_gutsy_i386.deb使用者加到 vboxusers 的 group 去
終端機輸入:
$ udo usermod -G vboxusers -a USER_NAME紅色字體輸入你的使用者名稱
- 接下來設定裝權限
- 從選單「系統」→「管理」→「使用者及群組」→「管理群組(M):」進入群組設定名單。
- 尋找vboxusers這個群組名稱(通常在最底下)。
- 點選vboxusers後,選擇「屬性」,將允許使用VitualBox的使用者都勾選起來,就完成權限設定了。
- 設定使用USB裝置的權限
$ sudo gedit /etc/udev/rules.d/40-permissions.rules
找下列的敘述:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"
替換成:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"
紅色字體為增加的部份
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"
紅色字體為增加的部份
Ubuntu 7.10中預設關閉usbfs的支援,會導致VirtualBox出現以下錯誤:
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.
- 修正錯誤
$ sudo gedit /etc/init.d/mountdevsubfs.sh
開啟後,找下列敘述:
#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb
將最後四行的#去掉,如下所示:
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
設定完後,重啟系統,設定才會生效。就不會再出現錯誤訊息了,也能夠正常使用usb裝置了。
- 設定使用USB裝置
- 打開VirtualBox,點選「設定值」→「USB」→「啟用USB控制器」。
- 先插上你要用的usb裝置。
- 按右邊「+」號,增加剛剛插上的usb裝置,按「確定」,完成。
接下來就可以按照一般程序開始安裝xp了
補充:
開啟virtualbox選擇設定值->分享資料夾
新增一個資料夾
假設資料夾為xyz(個人習慣放在home的目錄裡或桌面)
設定好資料夾後啟動虛擬xp
點選開始->執行輸入net use z: \\vboxsvr\xyz
z為想設定的槽
打開我的電腦後就會看見多了一個網路磁碟z(z為所設定的槽代號)
參考
http://blog.pixnet.net/Ubuntu/post/8524747
virtualbox教學可參考
http://mmpo.pcadsl.com/mmpo/windows_software/virtualbox/
參考資料
http://ubuntucookbook.com/recipes/install-virtualbox-on-ubuntu.html
http://www.wmfield.idv.tw/496
2008年1月20日 星期日
Ubuntu 7.10 下安裝Tomcat
首先確認是否已經安裝 Java Software Development Kit (SDK) and J2SE Runtime Environment (JRE)如果還沒,請先參照這裡的設定方式設定。
假設配置環境都已經準備好了,即將開始下列的安裝說明:
首先我們先至官方網站下載Tomcat,在這範例我是下載apache-tomcat-6.0.14.tar.gz
並放置在/home底下。
我們將tomcat解壓縮至/opt/底下,所以
打開終端機並輸入:
執行解壓縮
終端機輸入:
解壓縮完,就會發現apache-tomcat-6.0.14的資料夾了。
測試是否安裝成功
終端機輸入:
會出現下列的訊息:
Using CATALINA_BASE: /opt/apache-tomcat-6.0.14
Using CATALINA_HOME: /opt/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /opt/apache-tomcat-6.0.14/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun
假如沒出現上面的訊息請確認你設定的環境變數是否正確。
然後打開瀏覽器並輸入http://localhost:8080/ 輸入完畢後會出面tomcat 預設的首頁畫面,這時Tomcat已經安裝完成了。
參考資料:
http://ubuntuforums.org/showthread.php?p=226828
假設配置環境都已經準備好了,即將開始下列的安裝說明:
首先我們先至官方網站下載Tomcat,在這範例我是下載apache-tomcat-6.0.14.tar.gz
並放置在/home底下。
我們將tomcat解壓縮至/opt/底下,所以
打開終端機並輸入:
$ cd /opt/
執行解壓縮
終端機輸入:
$ tar xvzf /home/apache-tomcat-6.0.14.tar.gz
解壓縮完,就會發現apache-tomcat-6.0.14的資料夾了。
測試是否安裝成功
終端機輸入:
$ cd apache-tomcat-6.0.14/bin
$ ./startup.sh
會出現下列的訊息:
Using CATALINA_BASE: /opt/apache-tomcat-6.0.14
Using CATALINA_HOME: /opt/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /opt/apache-tomcat-6.0.14/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun
假如沒出現上面的訊息請確認你設定的環境變數是否正確。
然後打開瀏覽器並輸入http://localhost:8080/ 輸入完畢後會出面tomcat 預設的首頁畫面,這時Tomcat已經安裝完成了。
參考資料:
http://ubuntuforums.org/showthread.php?p=226828
Ubuntu 7.10 下安裝Pidgin
Gaim 一直以來是大家在 X (Xorg/X11) Window 下常用的即時通訊(IM)軟體,可以用來與 MSN Messenger、Yahoo! 即時通或 Google Talk 等常見通訊軟體上的聯絡人、好友互相傳送訊息或檔案。而Gaim 在 2.0 正式版本之後就更名為 Pidgin。
以下將提供我在安裝Pidgin的過程
首先至Pidgin下載並點選Source選項來下載,我下載pidgin-2.3.1.tar.bz2至(/home)
打開終端機並輸入:
(這部份我有做修改,在參考資料中libnss-dev 和libnspr-dev 套件無法找到)
先到我們下載檔案所在的目錄中:
終端機輸入:
執行解壓縮
終端機輸入:
解壓縮完畢後進入pidgin-2.3.1
終端機輸入:
現在開始配置(Configure)和安裝(Install)
終端機輸入:
執行上列幾個程序pidgin即可順利安裝完成。
參考資料
http://jhcore.com/2007/06/04/install-pidgin-in-ubuntu/
以下將提供我在安裝Pidgin的過程
首先至Pidgin下載並點選Source選項來下載,我下載pidgin-2.3.1.tar.bz2至(/home)
打開終端機並輸入:
$ sudo apt-get install libgtk2.0-dev libxml2-dev gettext libgnutls-dev(這部份我有做修改,在參考資料中libnss-dev 和libnspr-dev 套件無法找到)
先到我們下載檔案所在的目錄中:
終端機輸入:
$ cd /home
執行解壓縮
終端機輸入:
$ tar xvfj pidgin-2.3.1.tar.bz2
解壓縮完畢後進入pidgin-2.3.1
終端機輸入:
$ cd pidgin-2.3.1
現在開始配置(Configure)和安裝(Install)
終端機輸入:
$ ./configure
$ make
$ sudo make install
執行上列幾個程序pidgin即可順利安裝完成。
參考資料
http://jhcore.com/2007/06/04/install-pidgin-in-ubuntu/
2008年1月18日 星期五
Ubuntu 7.10 下安裝My SQL
Ubuntu 7.10 apt 有提供安裝My SQL套件,我們可以很方便的安裝My SQL
當然如果不透過這套件也可以,安裝動作可以參考 My SQL 官方所提供的文件安裝
在這將說明利用apt套件如何安裝 My SQL
打開終端機並輸入:
安裝完畢後,
打開終端機並輸入:
假如你在安裝的時候沒輸入密碼的話
輸入:
如果有,請在後面在增加 -p ,終端機會要求你輸入密碼
假設你已經順利去進mysql (左邊會出現mysql>),接下來就新增用戶及權限
終端機中輸入:
username ,password 分別輸入你所要的帳號密碼。你就可以透過這帳號和密碼使用在loaclhost中的資料庫了。
終端機並輸入:
即可使用MySQL 所提供的介面來操作MySQL
當然如果不透過這套件也可以,安裝動作可以參考 My SQL 官方所提供的文件安裝
在這將說明利用apt套件如何安裝 My SQL
打開終端機並輸入:
$ sudo apt-get install mysql-server
安裝完畢後,
打開終端機並輸入:
$ cd /etc/init.d/
假如你在安裝的時候沒輸入密碼的話
輸入:
$ mysql -u root
如果有,請在後面在增加 -p ,終端機會要求你輸入密碼
假設你已經順利去進mysql (左邊會出現mysql>),接下來就新增用戶及權限
終端機中輸入:
$ mysql>grant all privileges on *.* to username@localhost identified by 'password' with grant option;
username ,password 分別輸入你所要的帳號密碼。你就可以透過這帳號和密碼使用在loaclhost中的資料庫了。
終端機並輸入:
$ sudo apt-get install mysql-admin mysql-navigator
即可使用MySQL 所提供的介面來操作MySQL
訂閱:
文章 (Atom)