遊客:  註冊 | 登錄 | 幫助





標題: [討論] 你地係點樣測試Java架??
flash2man (我愛芙蓉姐姐)     Rank: 5Rank: 5Rank: 5
風中藍
性別 保密
UID 19

精華 0
帖子 4160
積分 5664   詳情

閱讀權限 60
註冊 2006-6-23
來自 活在芙蓉姐姐世界
狀態 離線

 
 
 
 
發表於 2007-9-12 11:07 AM  資料  個人空間  短訊  加為好友  Gmail
你地係點樣測試Java架??

因為我平時係用開Linux , 所以我想問問大家你地喺Windows環境度係點樣測試Java程序架?


(即係啱啱裝好JDK,你地係點樣測試下work唔work咁)

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-9-14 04:19 AM  資料  個人空間  短訊  加為好友 
if you install java jre or jdk you can just double click on the jar files. Those are executable.

頂部



mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-9-14 06:17 AM  資料  個人空間  短訊  加為好友 
Sorry遲左幾日覆您。  

我一向用開 Websphere Studio (而家叫 Rational Application Developer), 所以除左寫 codes 果陣之外﹐大部份野都有 GUI 俾我 setup﹐亦跟埋 Local Test Environment (一個 local 版既 Websphere Application Server)﹐所以好耐無落手落腳去 build 一個 app﹐唔知仲記唔記得添!  

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-9-15 07:54 AM  資料  個人空間  短訊  加為好友 
Now days it seems Netbeans with integrated JBoss is pretty good. At the moment I am researching the best solution to build a RCP application. I have to choose between Eclipse and Netbeans. Eclipse is widely supported and have a good name as RCP (look at websphere, JBuilder etc...), but today I start up Netbeans and I was amazed what this RCP provide to me. It is lot easier to use and faster to develope my application.

I think Netbeans will slowly take the market share from Eclipse and become the biggest open source IDE.

As for flash2man. Beside my reply above you can always run or debug a java app within a IDE.

頂部

flash2man (我愛芙蓉姐姐)     Rank: 5Rank: 5Rank: 5
風中藍
性別 保密
UID 19

精華 0
帖子 4160
積分 5664   詳情

閱讀權限 60
註冊 2006-6-23
來自 活在芙蓉姐姐世界
狀態 離線

 
 
 
 
發表於 2007-9-21 05:54 PM  資料  個人空間  短訊  加為好友  Gmail
我Linux環境下好正常 , 我Windows 環境下係用記事本同埋 cmd 黎試同一條程式就唔得呀......

我普通輪出一句"Hello"冇反應呀......我已經按住書黎做

class Welcome{
public static void main(String args[])
{
System.out.println("Hello");
}
}

P.S. 我本書係用JDK1.3版黎介紹 , 我部機就係裝JDK1.5 , 不過我覺得應該冇關係呱.....

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-9-21 06:31 PM  資料  個人空間  短訊  加為好友 
if you running windows. You need to set a path so that you can run your programs from any directory.

Start -> settings -> control panel > system -> Advanced Tab -> Environmnet Variables --> System Variables. There you will see a variable named PATH. click on it... select edit and add ;c:\j2sdk1.4.2_01\bin (the name of your directory where java is stored might be different, use the one you have. It is the one you saved Java to when downloading) this to the path.

On winxp you won't have to reboot. And you're all set to go. When saving your program make sure you save it with the same name as your class name in your program. So your class is called Welcome, then save the program as Welcome.java. Then go to promt, find the directory where your program is in and type javac Welcome.java this compiles it.
Then to run it type: java Welcome.

Rember don't save your program as txt file, it has to have a .java extenstion. Save as "whatever.java

頂部

mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-9-22 10:07 PM  資料  個人空間  短訊  加為好友 
無反應?  定係有咩 error messages 呢?

不如您索性裝 Netbeans 啦﹐還惦您遲早都要用某 d IDE 黎寫﹐如果寫大小小既 application﹐會慳好多時間架。  

頂部

flash2man (我愛芙蓉姐姐)     Rank: 5Rank: 5Rank: 5
風中藍
性別 保密
UID 19

精華 0
帖子 4160
積分 5664   詳情

閱讀權限 60
註冊 2006-6-23
來自 活在芙蓉姐姐世界
狀態 離線

 
 
 
 
發表於 2007-9-23 09:19 PM  資料  個人空間  短訊  加為好友  Gmail
係冇反應 , 乜都冇出 .

我都有裝Netbeans都係冇反應 , 我已經按足書上ge黎整都唔得 .






頂部

mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-9-23 10:08 PM  資料  個人空間  短訊  加為好友 
咁奇?  咁不如您裝 VNC 等我地其中一個可以 remote 去您部機幫您睇睇?  

頂部

flash2man (我愛芙蓉姐姐)     Rank: 5Rank: 5Rank: 5
風中藍
性別 保密
UID 19

精華 0
帖子 4160
積分 5664   詳情

閱讀權限 60
註冊 2006-6-23
來自 活在芙蓉姐姐世界
狀態 離線

 
 
 
 
發表於 2007-9-25 08:58 PM  資料  個人空間  短訊  加為好友  Gmail


QUOTE:
原帖由 mickeyGoUp 於 2007-9-23 10:08 PM 發表
咁奇?  咁不如您裝 VNC 等我地其中一個可以 remote 去您部機幫您睇睇?  

我終於知道點解會冇反應呀...原來我notebook個Enter鍵壞左呀...而家按Enter(單次)會變左"\" , 快按兩次變成Page Down呀,所以入CMD入面我test唔到呀....真係世紀大災難呀.....






頂部

快速美言
           


當前時區 GMT+8, 現在時間是 2024-5-8 05:13 AM

    Powered by Discuz!  © 2001-2007 Comsenz Inc.   
Processed in 0.015045 second(s), 7 queries

清除 Cookies - 聯繫我們 - LIPS Corner 新天藍 - Archiver