嗨,我是新來的Java和NetBeans IDE 7.4 我已經安裝了JDK 7u45的Windows和NetBeans 7.4如何將Java SDK導入NetBeans?
我創建了下面的java程序
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package readnumbers;
import Utilities.Keyboard;
/**
*
* @author Sinatra
*/
public class ReadNumbers {
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
// TODO code application logic here
double dNum1, dNum2, dNum3;
double dAnswer;
System.out.println("This is a heading");
System.out.println("Enter a number");
dNum1 = Keyboard.getDouble();
}
}
,我發現了以下錯誤: 錯誤:程序包實用程序不存在。
請幫忙
我不確定你想要做什麼,但這與Java SDK無關。 SDK中沒有這樣的軟件包。也許你正在嘗試使用外部庫,但是它有一個奇怪的命名:通常(閱讀:幾乎總是)包以小寫字符開頭。 –
爲什麼你需要'Utilities.Keyboard'? –