facebook

Please help. The selection does not contain a main type

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #243796 Reply

    Below is as basic as you can get. It wont run in MyEclipse. What setting am I missing? This will run on a command line. Please help

    public class MyApp {
    
     public static void main(String[] args){
    
         System.out.println("hello world");
    
     } // main
    #243805 Reply

    Kapil Kapre
    Member

    @pennstate1999 wrote:

    Below is as basic as you can get. It wont run in MyEclipse. What setting am I missing? This will run on a command line. Please help

    public class MyApp {
    
     public static void main(String[] args){
    
         System.out.println("hello world");
    
     } // main

    You’re on the forums of MyEclipse and the functionality you want help on isnt provided by us. Please post further queries to Eclipse forums – http://www.eclipse.org

    What you need to do is create a runtime profile specifing MyApp as the main class and the java application should run.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Please help. The selection does not contain a main type

You must be logged in to post in the forum log in