package abc ;
class Trying
{
Trying()
{
System.out.println("hello");
}
}
public class trying {
public static void main(String[] args) {
new Trying() ;
}
}
在這個時候,我從嘗試到它的工作原理其他名稱更改類的名稱,但在這裏說:找不到主類中的Netbeans
錯誤:無法找到或加載主類ABC .trying /Users/name/Library/Caches/NetBeans/8.2/executor-snippets/run.xml:53:Java的返回:1個 構建失敗(總時間:0秒)
這究竟是爲什麼? 我在任何已經提出的問題中都沒有找到這種情況。
的JDK和操作系統您正在使用的? –
我已經安裝了這個:jdk-8u121-macosx-x64(1).dmg – shikhar