2014-01-16 76 views
0

無法啓動以下可執行文件:\ bin \ javac.exe -g -classpath C:\ Users \ user \ Documents -d C:\ Users \ user \ Documents C:\ Users \ user \ Documents \ Kwame.java如需幫助,請參閱http://www.jcreator.com/installation.htm無法啓動以下可執行文件,

由於某種原因,無論我寫什麼代碼,我都會這樣做,我不知道爲什麼。

import java.io.*; 
import java.util.*; 

public class KyeretwieTestProgram1113 { 
    public KyeretwieTestProgram1113() { 
     Scanner kbInput = new Scanner(System.in) 
     System.out.println(Enter the high temperature on day 1:); 
     double d = kbInput.nextDouble(); 
     System.out.println(Enter the high temperature on day 2:); 
     double da = kbInput.nextDouble(); 
     System.out.println(Enter the high temperature on day 3:); 
     double a = kbInput.nextDouble(); 
     System.out.println(Enter the high temperature on day 4:); 
     double day = kbInput.nextDouble(); 
     System.out.println(Enter the high temperature on day 5:); 
     double y = kbInput.nextDouble(); 
    } 
} 

我該如何解決這個問題?

+0

看起來你已經安裝了JCreator錯誤。我想你應該參考http://www.jcreator.com/installation.htm,就像它說的那樣。堆棧溢出的人不能真正檢查你的安裝。我們的權力有限制。 –

回答

1

顯示的錯誤與代碼無關,而與Java編譯器或javac相關。確保你已經安裝了JDK,並且可以在此處執行代碼之前運行一個簡單的「Hello world」程序。

相關問題