Life Since 1985

Happy Hacking
It's so coooooool!!! 交换你的caps-lock和ctrl

linux下eclipse的安装和配置

david kei posted @ 2010年8月08日 12:37 in Method with tags Eclipse bash linux ubuntu , 2106 阅读

eclipse是我们常用的一个ide环境,虽然我一般是在emacs下写东西,但是有些大型工程或者要和别人协同合作的时候eclipse却是常用的标准,所以有时也会用到eclipse。

eclipse在linux下面的设置很容易,基本上下载下来解压缩后就能用了,但是想要系统“认识”这个软件那么对他进行一些必要的配置还是必须的。

具体步骤如下:

1.首先下载eclipse(废话)

2.将eclipse解压缩到/opt下面

3.在/usr/bin下面创建一个启动脚本

sudo gedit /usr/bin/eclipse

脚本内容如下:

#!/bin/sh
export ECLIPSE_HOME=/opt/eclipse
$ECLIPSE_HOME/eclipse $*

4.让脚本具有执行的权限

sudo chmod +x /usr/bin/eclipse

#到现在为止其实你已经可以在终端中直接输入eclipse运行了,不过有些盆友还是比较喜喜欢用桌面启动器(也就是快捷方式)或者菜单去运行eclipse,所以下面再加上创建启动器和菜单项的方法。不过桌面和面板上启动器是在太简单了,我只说明一下添加菜单启动器的过程。

首先在/usr/share/applications目录里新建一个eclipse.desktop启动器进行编辑。

sudo gedit /usr/share/applications/eclipse.desktop

在文件中添加如下内容:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;

好了,这样就搞定了,尽情享受eclipse吧!(也有可能是折磨-_-!)

ps:测试环境为ubuntu10.04,eclipse helios

Avatar_small
pingf 说:
2010年8月08日 13:17

如果不是JAVA的话还是SlickEdit好用

Avatar_small
david ki 说:
2010年8月09日 00:12

一般的还是在Emacs中写,eclipse主要用来与别人协同开发,我主要用来写一些java和python。

Bihar Board 12th Sci 说:
2022年9月27日 07:05

Every year the BSEB is provided the latest updated model question paper for intermediate Hindi Medium and English Medium students from past years old examination set wise question paper with expert answers to theory and objective type questions for all subjects of Hindi, English, Mathematics, Physics, Chemistry, Biology, Computer Science, Bihar Board 12th Science Model Paper Multimedia & Web Technology for BSEB Inter science stream students.Every year the BSEB is provided the latest updated model question paper for intermediate Hindi Medium and English Medium students from past years old examination set wise question paper with expert answers to theory and objective type questions for all subjects.

Alyssa 说:
2022年12月16日 00:46

The above steps will help you to install and configure Eclipse under Linux. You will get a clear gout idea about it from here and all the things are explained here very clearly. Such websites are really informative for students. Keep sharing more details over here.

charlly 说:
2023年1月18日 17:06

Eclipse is a powerful open-source Integrated Development Environment (IDE) for software development. Installing and configuring Eclipse in Linux allows developers to take full advantage of its powerful features. The installation process is straightforward and simple to follow, and the configuration of the IDE is quick and easy. With Eclipse, developers can write, compile, debug and CBD Supplements run their code with ease. This makes it an ideal choice for software development in Linux.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter