Open Terminal From Eclipse

36,149

Solution 1

Easy shell definitely is the one you're looking for.

enter image description here

You can install it via Eclipse marketplace. If you don't have Eclipse Marketplace Client (e.g., you are using Eclipse Classic), you can install it: ["Install New Software..."] --> search for "Marketplace Client"

Solution 2

Yes, here it is: http://code.google.com/p/openextern/

This is an eclipse plugin, which you can use to open a shell (either a command prompt - CMD or a linux shell), or a folder (windows explorer, nautilus, konqueror) from eclipse's resource navigator or package explorer.

Solution 3

To get an integrated terminal, try http://elt.googlecode.com

Solution 4

There is an Incubator project called Local Terminal. You can install it from the Eclipse update site under General Purpose Tools->Local Terminal
Much better then http://elt.googlecode.com

Solution 5

Sorry, I don't know any plugin which integrates that, except for this one. You might be forced to modify tarlog.

I've had a look at the code of tarlog. You could have a look at the OpenCommandPrompt class (can be found in the tarlog package: tarlog.eclipse.plugins_1.4.2\src\tarlog\eclipse\plugins\openwe)

   @Override
    protected void doAction(String path) {
        try {
            File file = new File(path);
            if (file.isFile()) {
                File parentFile = file.getParentFile();
                if (parentFile != null) {
                    path = parentFile.getAbsolutePath();
                }
            }
            if (command.indexOf("{0}") >= 0) {
                Runtime.getRuntime().exec(MessageFormat.format(command, path));
            } else {
                Runtime.getRuntime().exec(command, null, new File(path));
            }
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }

From what the code looks like it should work perfectly fine, as long as you specify the right executable in the preferences...

Share:
36,149
Cerin
Author by

Cerin

Updated on May 16, 2020

Comments

  • Cerin
    Cerin about 4 years

    Is there a plugin to provide an "open terminal here" option when right-clicking on a folder in Eclipse? I found this, but it only seems to work on Windows, and I'm using Ubuntu.

  • Cerin
    Cerin over 13 years
    Installed it via Update Manager, restarted, but it had no effect...
  • Cerin
    Cerin over 13 years
    Must have been a borked 3.4 Windows install. Tried adding it on a 3.5 Linux install, and it works perfectly. Thanks.
  • Cerin
    Cerin over 13 years
    Unfortunately, all I use is Eclipse Classic, which appears to be the only platform where Marketplace is unavailable.
  • Kane
    Kane over 13 years
    @Chris S, it should work as well to directly add pluginbox.sourceforge.net as update site
  • Michael Allan Jackson
    Michael Allan Jackson about 12 years
    Thanks! Works great on Ubuntu 11.10
  • Jerry Tian
    Jerry Tian almost 12 years
    highly recommending Easy shell, my eclipse's old friend.
  • Phill Pafford
    Phill Pafford almost 12 years
    This was exactly what I was looking for, Thannks
  • lhlmgr
    lhlmgr over 11 years
    easyshell works really good with Eclipse 4.2 and OSX 10.8.1 :) thanks!
  • Renaud
    Renaud over 11 years
    Great, thanks. Works fine on OSX
  • Darwyn
    Darwyn over 11 years
    I installed it Windows 7, but alas it doesn't work; should have read the fine print that said it won't not work for windows :(
  • Honghe.Wu
    Honghe.Wu about 11 years
    easy shell is platform-independent, it launch system shell. It's excellent.
  • Renaud
    Renaud about 11 years
    working great on OS X, thanks!
  • Cerin
    Cerin about 9 years
    Atlhough this has worked well for years, I found it apparently doesn't work at all in Unity with Eclipse 4.4. However, Easy Shell continued to work.