[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: How to execute current class?

With the class you want to run selected (or with that editor open and active), choose Run->Run(/Debug) As->Java Application. You'll see the default key shortcuts. To debug as Java, it's shift+alt+d then j.

Afterwards, you can press F11 to relaunch the last program in debug mode or ctrl+F11 to launch in run mode.

- Jared

Dani wrote:
Hi,

1st day working with eclipse.

Is there an easy way to run the current class I'm working on?

What I'd like to do is press any key and automaticaly execute the main method of the current class and not the entry point of my project.

Thanks in advance.

-- Dani