mac 如何安装eclipse
2023-03-28 广告
推荐于2017-09-20 · 知道合伙人软件行家
1. Mac OS X 本身已经安装好 jdk,所以搭建 Java Eclipse环境很简单,只需要下载适合系统的 Eclipse即可,首先查看系统是几位的(点击 Mac 屏幕左上角的苹果Logo,选择“关于本机”,在弹出的方形窗口里点击“更多信息…”按钮,再点击"系统报告…"按钮,在“软件”一栏就能看到目前你的苹果电脑 Mac OS X 系统是否开启 64位运算了。)
2.下载 Eclipse( Java 和 C/C++的都需要)http://www.eclipse.org/downloads/
3.安装 gcc编译器 XCode(为 Eclipse Java集成 C/C++做准备)。
判断系统里是否已经安装 gcc编译器的方法是,打开一个终端窗口(在实用工具文件夹里),输入命令 g++,没有则输出 command not found,若安装了则输出 not input files。 XCode在 mac电脑的随机安装光盘里就有,最新版可以上苹果官网上下载(http://developer.apple.com/technologies/xcode.html),但是需要注册一个 Apple Developer帐号后才能下载。按照安装程序步骤进行安装就可以了。 安装完后打开xcode,Preferences里面有个Downloads里面有个components选项,里面有个command line tools 安装上即可
4. Eclipse整合 Java与 C/C++
解压缩刚下载下来的两个版本Eclipse (注意放在不同的地方,防止因为文件名相同覆盖),然后将C/C++ 版本的Eclipse 里面的plugins 文件夹中的内容全部复制,粘贴到Java 版本的Eclipse 里面的plugins 文件夹下面(注意:不能覆盖已有的文件或文件夹),OK 工具都弄好了,现在就剩下测试了!!!
5. 先创建一个 Java工程
6. 创建一个 C++项目
7. 编译、运行程序 ( 必须要先编译 Project --> Build Project )
Mac OS X
On Mac OS X, you start Eclipse by double clicking the Eclipse application. If you need to pass arguments to Eclipse, you'll have to edit the eclipse.ini file inside the Eclipse application bundle: select the Eclipse application bundle icon while holding down the Control Key. This will present you with a popup menu. Select "Show Package Contents" in the popup menu. Locate eclipse.ini file in the Contents/MacOS sub-folder and open it with your favorite text editor to edit the command line options.
On MacOS X you can only launch a UI program more than once if you have separate copies of the program on disk. The reason for this behavior is that every UI application on Mac can open multiple documents, so typically there is no need to open a program twice. Since Eclipse cannot open more than one workspace, this means you have to make a copy of the Eclipse install if you want to open more then one workspace at the same time (bug 139319).
If you need to launch Eclipse from the command line, you can use the symbolic link "eclipse" in the top-level eclipse folder. It refers to the eclipse executable inside the application bundle and takes the same arguments as "eclipse.exe" on other platforms.
On Mac OS X 10.4 and later, you may notice a slow down when working with significant numbers of resources if you allow Spotlight to index your workspace. To prevent this, start System Preferences, select the Spotlight icon, then the Privacy tab, then click the Add button ("+") and find your workspace directory in the dialog that appears.
广告 您可能关注的内容 |