remove eclipse folder and folowings:
~/.eclipse (folder);
~/Library/Saved Application/org.eclipse.eclipse.savedState;
~/Library/Preferences/org.eclipse.eclipse.plist;
~/Library/Caches/org.eclipse.eclipse;
… and of course the eclipse install folder

Comment and share

1
2
3
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

Comment and share

  1. 用firefox瀏覽器取得https網站的server crt,並存成local.crt

    1
    google firefox get ssl cert
  2. 利用keytool產生java client端要用的client keysotre

    1
    2
    keytool -import -alias ocsg.keystore -keystore ocsg.keystore -file localhost.crt
    #建立的同時要輸入密碼,密碼會在下一步用到
Continue reading
  1. 下載jdk
  2. 解壓縮到/usr/java/

    1
    tar -zxvf jdk1.7.0_45.tar.gz
  3. 修改/etc/profile與/etc/profile/etc/bashrc,加入以下

    1
    2
    3
    # JDK environment
    JAVA_HOME=/usr/java/jdk1.7.0_45
    PATH=$PATH:$JAVA_HOME/bin/
  4. 登出再登入,or source /etc/profile

  5. java -version

Comment and share

Cwza

Hello everyone.
I’m cwza.
Welcome to my blog.


Software Engineer


Taiwan/Taipei