2009年12月24日
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.IProgressMonitor
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: com.jface.applicationwindow.HelloJFace. Program will exit.
很奇怪的是我明明已經org.eclipse.core.runtime,于是就去包里直接找IPogressMonitor,發現果然沒有這個類,雖然 所有的書中都沒有寫要導入其他的什么包。這個問題一直困擾了我兩個晚上,我一狠心就直接去eclipse/plugin里面找 IPogressMonitor,卻在org.eclipse.equinox.common包中找到了這個class,真是不知道eclipse是什么 用心,好好的一個工程卻放在兩個包里,搞的我完全不知所以然。CSDN上有人 解釋說org/eclipse/core/runtime這個包不是封裝在一個jar包之下的,他們是屬于兩個項目的。
所以要想成用運行SWT/JFace程序必須從eclipse/plugin里面導入以下Jar文件:
org.eclipse.jface.text_3.5.1.r351_v20090708-0800.jar
org.eclipse.jface_3.5.1.M20090826-0800.jar
org.eclipse.core.runtime_3.5.0.v20090525.jar
org.eclipse.core.runtime.compatibility_3.2.0.v20090413.jar
org.eclipse.osgi_3.5.1.R35x_v20090827.jar
org.eclipse.core.commands_3.5.0.I20090525-2000.jar
org.eclipse.swt.gtk.linux.x86_3.5.1.v3555a.jar
org.eclipse.core.runtime.compatibility.auth_3.2.100.v20090413.jar
org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar
還發現一個比較好的網站:http://www.findjar.com/index.x
大家遇到找不到JAR文件的時候可以去這里找找。
2009年12月21日
本來想用Python寫的,奈何PyGTk不是很熟,就忍不住先用java寫了。但是Java的客戶端能力實在不敢恭維,所以只草草完成了部分功能,以后再用Python加強。
歡迎大家報告bug,感激不盡!
Gmail/Gtalk:cabinw@gmail.com
初始界面:

輸入全數字字母地址后按Change即可:

可以勾選save this address,保存歷史記錄

在地址后加冒號可以為歷史地址添加標簽

成功修改:

About:

2009年12月20日
cd /java/jre1.5.0_04 (Change the name of the directory to where you have installed the JRE)