How do I get to the command line in Eclipse
I can’t figure out how to get to the command line in Eclipse. I am using a mac.
4 Solutions collect form web for “How do I get to the command line in Eclipse”
What you are asking for is local terminal. There are several option for Eclipse Is there an Eclipse plugin to run system shell in the Console?
and you are lucky because there is great plugin for MacOS
UPDATE: there is new TM Terminal http://marketplace.eclipse.org/content/tcf-terminals for all OSes.
Terminal plug-in for Eclipse provides a command line view (= INSIDE Eclipse), at the moment Linux and Mac OS X only.
In the Eclipse Menubar select Window->Show View-> Other
Find or type “Terminal” in the filter box
You should now see a Terminal view in the bottom pane.
In the icon section for that bottom pane you’ll see an icon that looks like a very stylized terminal window with a plus-sign on it.
Click it and select “New Terminal Connection in current view”, and then use the resulting dialog to create either a telnet or ssh connection to “localhost” depending on what you have available on your local system.
This works on Eclipse Indigo Java EE edition, with no additional plugins installed. I don’t know if it was available in previous releases.
I use the Aptana Studio plugin and it provides Eclipse with a terminal utility opened this way:
Window -> Show View -> Terminal
I don’t think Eclipse comes with a terminal out of the box. You can add command line arguments to Java programs:
Right Click -> Run As -> Run Configurations -> Run As -> Arguments
When you run Android apps from within Eclipse, it’s really just Eclipse proxy-ing
adb commands to the OS. With this in mind, even though I develop my Android apps in Eclipse, I manage the emulator from the outside using a plain old terminal, for increased speed and control.
I should assume you are looking to give command line input in Eclipse:
- Right Click on the class file ( in the file explorer view )
- Debug As -> Debug Configurations
- A new dialog box opens – Click on Arguments tab
- Fill up the Program arguments text area suitably.