在Mac上打开多个Eclipse工作区 [英] Open multiple Eclipse workspaces on the Mac
问题描述
如何在Mac上同时打开多个Eclipse工作区?
在其他平台上,我可以启动额外的Eclipse实例,但Mac不会让我打开相同的应用程序两次。有没有比保存两个Eclipse的更好的方法?
编辑: 我的答案似乎是10.5版本正式支持的方式。早期版本的OS X甚至10.5及以上版本仍然可以使用以下说明。
-
打开命令行(终端)
-
导航到您的Eclipse安装文件夹,例如:
-
cd / Applications / eclipse /
- code> cd /Developer/Eclipse/Eclipse.app/Contents/MacOS/eclipse
-
cd / Applications / eclipse / Eclipse.app/Contents/MacOS/eclipse
-
cd / Users /< userhere> / eclipse / jee-neon / Eclipse。 app / Contents / MacOS
-
-
启动Eclipse:
./ eclipse &
最后一个命令将启动eclipse并立即背景进程。 p>
冲洗并重复打开尽可能多的Eclipse独特实例。
警告
您可能需要 chang请访问Tomcat 服务器端口,以便在不同/多个Tomcat实例中运行您的项目,请参阅 Tomcat服务器错误 - 端口8080已在使用
How can I open multiple Eclipse workspaces at the same time on the Mac?
On other platforms, I can just launch extra Eclipse instances, but the Mac will not let me open the same application twice. Is there a better way than keeping two copies of Eclipse?
EDIT: Milhous's answer seems to be the officially supported way to do this as of 10.5. Earlier version of OS X and even 10.5 and up should still work using the following instructions though.
Open the command line (Terminal)
Navigate to your Eclipse installation folder, for instance:
cd /Applications/eclipse/
cd /Developer/Eclipse/Eclipse.app/Contents/MacOS/eclipse
cd /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse
cd /Users/<usernamehere>/eclipse/jee-neon/Eclipse.app/Contents/MacOS
Launch Eclipse:
./eclipse &
This last command will launch eclipse and immediately background the process.
Rinse and repeat to open as many unique instances of Eclipse as you want.
Warning
You might have to change the Tomcat server ports in order to run your project in different/multiple Tomcat instances, see Tomcat Server Error - Port 8080 already in use
这篇关于在Mac上打开多个Eclipse工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!