facebook

debug and run not finding main methods

  1. MyEclipse Archived
  2.  > 
  3. General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #309216 Reply

    Greg Soulsby
    Member

    Am new to MyEclipse and it is not running as my Eclipse install does.

    Have dragged some java classes into a Java project. They are compling fine. When I go to MyEclipse->Debug->Debug configurationsand select search for main methods it is not showing the main methods in my newly created code.

    The list of main methods that are showing are from classes that are included in an external library .jar file.

    It looks like the build path or classpath is not pointing at newly create files? Have tried every combination I can think of on the ClassPath tab.

    What do I need to my set up?

    Thanks

    #309230 Reply

    P0rridge,
    Can you give some more information on this?
    1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details?
    2.

    Have dragged some java classes into a Java project.

    Can you clarify what exactly you are trying to do? Did you copy the classes that are created elsewhere?
    3. If you create a new java project and add a class with main, does that show up in the run/debug configurations?

    #310778 Reply

    Greg Soulsby
    Member

    Shalini, I found the problem – the main method needs to be public, otherwise it doesnt show up. Sorry to both you.

    #310789 Reply

    P0rridge,
    Good to know that you have found a solution.
    Do let us know if you have any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: debug and run not finding main methods

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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