简体   繁体   中英

not able to run java program in eclipse using jdk 1.7

I am trying to run very simple application in eclipse :

package hello;

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

    }
    }

it shows an error in console: Could not find or load main class hello.RunMain It uses jdk 1.7What could be the possible reason

Right Click Run As -> RunConfiguration

In Main tab: Main Class: hello.RunMain

In ClassPath tab: under user entries add the project(from add projects)

Click on Run.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM