close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
java hello world 無法執行
Nov 23rd 2014, 13:12

首先附上我的hello world程式碼 我RUN過了相信應該是沒問題的
package main;

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

我存成hello.java的形式
再來我打開CMD , 對了我的系統是win8.1 64bit
我打上 java 和 javac 來檢測我的java是否安裝成功

得到的答案都是有的
再來我打上hello出現
'hello'不是內部或外部命令,可執行的程式或批次檔
打上java hello出現
錯誤:找不到或無法載入主要類別hello

請問這要怎麼處理
一開始的確有環境變數的問題
但是我上網GOOGLE好久終於把PATH設定好了
這樣應該可以證明我的java安裝沒問題
現在問題就出在我寫好了程式卻無法運行
我使用的是mac pro 上安裝雙系統 win8.1
我不知道這有沒有影響

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    jmuko90 發表在 痞客邦 留言(0) 人氣()