Open Terminal From Eclipse
Solution 1
Easy shell definitely is the one you're looking for.
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...
Cerin
Updated on May 16, 2020Comments
-
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 over 13 yearsInstalled it via Update Manager, restarted, but it had no effect...
-
Cerin over 13 yearsMust have been a borked 3.4 Windows install. Tried adding it on a 3.5 Linux install, and it works perfectly. Thanks.
-
Cerin over 13 yearsUnfortunately, all I use is Eclipse Classic, which appears to be the only platform where Marketplace is unavailable.
-
Kane over 13 years@Chris S, it should work as well to directly add pluginbox.sourceforge.net as update site
-
Michael Allan Jackson about 12 yearsThanks! Works great on Ubuntu 11.10
-
Jerry Tian almost 12 yearshighly recommending Easy shell, my eclipse's old friend.
-
Phill Pafford almost 12 yearsThis was exactly what I was looking for, Thannks
-
lhlmgr over 11 yearseasyshell works really good with Eclipse 4.2 and OSX 10.8.1 :) thanks!
-
Renaud over 11 yearsGreat, thanks. Works fine on OSX
-
Darwyn over 11 yearsI 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 about 11 yearseasy shell is platform-independent, it launch system shell. It's excellent.
-
Renaud about 11 yearsworking great on OS X, thanks!
-
Cerin about 9 yearsAtlhough 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.