Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to execute current class?
How to execute current class? [message #52554] Fri, 15 April 2005 18:03
Eclipse UserFriend
Originally posted by: spambox710.gmail.com

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
Re: How to execute current class? [message #52581 is a reply to message #52554] Fri, 15 April 2005 18:00 Go to previous message
Eclipse UserFriend
Originally posted by: jaredburns.no.spam.acm.org

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
>
Previous Topic:Launching Eclipse
Next Topic:Setting default classpath folders
Goto Forum:
  


Current Time: Wed Jul 03 01:20:08 GMT 2024

Powered by FUDForum. Page generated in 0.08036 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top