2013-10-30 103 views
0

我試圖在Eclipse中運行非常簡單的應用程序在Eclipse中運行Java程序:無法使用JDK 1.7

package hello; 

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

    } 
    } 

它顯示在控制檯的錯誤: 無法找到或加載主類hello.RunMain 使用JDK 1.7What可能是可能的原因

+0

什麼是錯誤 –

+1

您是否將該文件保存在包中的hello包中? – luanjot

+0

我指定了以上錯誤 – ALBI

回答

0

右鍵點擊運行方式 - > RunConfiguration

在主要選項卡: 主類:hello.RunMain

在Classpath選項卡: 下添加用戶條目的項目(從附加項目)

點擊運行。

相關問題