原创 use java to execute the cmd and compile to jar file

 try {             String cmd = "cmd.exe /c http://www.google.com/";            Process process = Runtime.getRuntime().

原创 JSF copy files

public static int copyFiles(String orgFile, String newFile) throws AccessControlException     {                 String

原创 Java change contant of the ".java" files

 /*  * To change this template, choose Tools | Templates  * and open the template in the editor.  */ package ChangeDocu

原创 Exception: the content of elements must well-formed character data or makeup

    when i write the overlap marker google map js, my netbean comes out: “the content of elements must well-formed ch

原创 Android forward display screen(pages), by intent.

in Main activity: HelloAndroid.java   public class HelloAndroid extends Activity {     private Button startBtn;     pri

原创 J2ME read txt file

public void readfile(){         InputStream in = null;         DataInputStream dis = null;         in = this.getClass()

原创 use J2SE compile jar file

public static int copyFiles(String orgFile, String newFile) throws AccessControlException     {                 String

原创 hibernate問題

我有一個database table userinfo,   DROP TABLE IF EXISTS `users`; CREATE TABLE `users` (   `id` int(11) NOT NULL,   `sid` va

原创 使用J2me網絡編程訪問網頁內容--轉載哦~~

  一、請求與響應的格式 我們非常需要關注請求與響應格式的一至性,比如:客戶端使用: HttpConnection c = (HttpConne

原创 Google App Engine: RUN JSP ERROR

I used Eclipse to try the google app engine demo project: guestbook.   when i create a *.jsp file in the WAR directory,

原创 android read xml error: not well-formed (invalid token)

when used android to read local XML file, it show show up error:   org.apache.harmony.xml.ExpatParser$ParseException: A

原创 Mac OS: XAMPP localhost cannot login

under Mac os 10.6, out of sudden I cannot access the localhost.   under safari, once it goes to http://localhost/, it a

原创 uncompress the tar.gz files in Ubuntu

inside the terminal   1. cd Desktop (i put my navit.tar.gz on the desktop)   2. tar -zxvf navit.tar.gz (it wil uncompre

原创 Mac OS: XAMPP + XBEBUG + JOOMLA installation

It is a truly disaster to install Joomla on mac os. It takes me almost a week to try again, again and again!!!. Fina

原创 Android Uncaught Exception Handler郵件發送錯誤日誌

Use for "Force Close".   //close the activity immediately.   android.os.Process.killProcess(android.os.Process.myPid())