Eclipse in Linux

windofsun 2004-11-17 10:25:46
I'm sorry to input English, but I don't know how to input Chinese in Linux.

I've installed jdk1.4.2 to /usr/java/j2sdk1.4.2_06, and made a link file as '/usr/jdk' to link it.
And I unpackaged eclipse to /root/developer/java/eclipse/Eclipse/eclipse, and made a link file as '/root/developer/java/eclipse/Eclipse/eclipse/jre' to '/usr/jdk/jre'. I started it up by command: ./eclipse, but it did not work, instead show me the following info:
Couldn't find per display information.

I can login XWindow as usually, so i think there is nothing wrong with my Display Device.
...全文
361 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
bbhl80 2005-02-20
  • 打赏
  • 举报
回复
讲的很详细,多谢!试试先
wti 2004-11-28
  • 打赏
  • 举报
回复
Can you reinstall it according to discreption of moxiaolong(背弃了理想,谁人都可以,那会怕有一天只你跟我)?
Im my computer there have so such problem, and i don't know why these happen.
But if your other X-program have no problem, it should not the problem about
display.
biaji 2004-11-28
  • 打赏
  • 举报
回复
试试gtk的版本

motif的没用过呢我。
windofsun 2004-11-27
  • 打赏
  • 举报
回复
help me, plz.
windofsun 2004-11-25
  • 打赏
  • 举报
回复
I downloaded eclipse-SDK-3.0.1-linux-motif.zip from eclipse.org, and upzipped it to /root/developer/java/eclipse/Eclipse/eclipse, and installed jdk1.4.2 to /usr/java/j2sdk1.4.2_06.
made a link file as '/root/developer/java/eclipse/Eclipse/eclipse/jre' to '/usr/jdk/jre'. When i started eclipse up with command "./eclipse", the following messages appeared:



Error: Couldn't find per display information
Eclipse: JVM terminated. Exit code=1
/root/developer/java/eclipse/Eclipse/eclipse/./jre/bin/java
-cp /root/developer/java/eclipse/Eclipse/eclipse/./startup.jar org.eclipse.core.launcher.Main
-os linux
-ws motif
-arch x86
-showsplash /root/developer/java/eclipse/Eclipse/eclipse/./eclipse -showsplash 600
-exitdata /root/developer/java/eclipse/Eclipse/eclipse/./eclipse -exitdata 8000
-vm /root/developer/java/eclipse/Eclipse/eclipse/./jre/bin/java
-vmargs
-cp /root/developer/java/eclipse/Eclipse/eclipse/./startup.jar org.eclipse.core.launcher.Main
wti 2004-11-25
  • 打赏
  • 举报
回复
can you paste the content of eclipse?
wti 2004-11-25
  • 打赏
  • 举报
回复
And when you do ./eclipse as root, there are same message?
wti 2004-11-25
  • 打赏
  • 举报
回复
How about this:
./eclipse -display :0.0
windofsun 2004-11-25
  • 打赏
  • 举报
回复
Yes, I did as root, because... I do not create any other user yet. I do anything as root. :)
windofsun 2004-11-23
  • 打赏
  • 举报
回复
I did it as root

and echo $DISPLAY? How to do? i'm sorry that i am a freshman.
wti 2004-11-23
  • 打赏
  • 举报
回复
try to do it as root
and
echo $DISPLAY
windofsun 2004-11-22
  • 打赏
  • 举报
回复
it's kind of u all. but the error info remain... maybe there is really something wrong with my disply device?
bjblz 2004-11-19
  • 打赏
  • 举报
回复
moxiaolong(背弃了理想,谁人都可以,也会怕有一天只你跟我)
讲的很详细了

biaji 2004-11-18
  • 打赏
  • 举报
回复
设置JAVA_HOME 不用做那么多链接。。

直接运行就好了啊
moxiaolong 2004-11-17
  • 打赏
  • 举报
回复
我用的环境是 red hat linux 9 (自编译gnome2.4)

一:下载所需软件(所有下载的软件均放在/opt下)

先下载 Eclipse,网址为 http://www.eclipse.org 目前,我使用eclipse2.1;下载其gtk版本:eclipse-SDK-2.1.1-linux-gtk.zip

执行 Eclipse是须用到JDK,但Eclipse的安装程序和Red Hat Linux 9 里没有包含JDK,Sun 最新版本的 JDK可到 http://java.sun.com下载,在此我们使用的是sun jdk (J2SE) 1.4.2_01版(也可使用IBM的jdk)。

二 :安装

1.先把red hat9的软件开发包装上,

2.安装JDK(需以root身分安装):

[root@redarmy] chmod +x j2sdk-1_4_2_01-linux-i586-rpm.bin
[root@redarmy] ./j2sdk-1_4_2_01-linux-i586-rpm.bin
[root@redarmy] rpm –ivh j2sdk-1_4_2_01-linux-i586-rpm.bin



安装好的JDK 会存在 /usr/java/j2sdk1.4.2_01 目录中。

设定JAVA_HOME,CLASSPATH,PATH; 在/etc/profile文件最后加如下四行:

export JAVA_HOME = /usr/java/j2sdk1.4.2_01
export PATH = $JAVA_HOME/bin:$PATH
CLASSPATH=.:/usr/java/j2sdk1.4.2_01/lib/tools.jar:$CLASSPATH
export CLASSPATH



3.安裝Eclipse

在此我把Eclipse安装在 /opt 下,安装Eclipse很简单,只要把下载回来的压缩包解压就可以了;解压后得到eclipse目录;

[root@redarmy] unzip –d /opt eclipse-SDK-2.1.1-linux-gtk.zip

为让每一个帐号都可以执行Eclipse,我写了个小脚本(eclipse.sh):

#!/bin/bash
#
# 执行 eclipse 2.1.1
#
export JAVA_HOME=/usr/java/j2sdk1.4.2_01
export CLASSPATH=/usr/java/j2sdk1.4.2_01/lib
/opt/eclipse/eclipse -vm /usr/java/j2sdk1.4.2_01/bin/java -data ~/workspace &
# -vm 参数用以指定使用哪一个 jvm 来执行Eclipse,
# -date参数用以指定Eclipse的数据目录。在此指定其存在用户根目录(~)下的workspace目录中



将eclipse.sh 复制到/usr/local/bin中,并为它加上权限755;现在执行 eclipse.sh 即可启动 Eclipse。

[root@redarmy] cp eclipse.sh /usr/local/bin
[root@redarmy] chmod 755 /usr/local/bin/eclipse.sh



将eclipse添加到桌面。首先,在桌面上按下鼠标右键,在弹出菜单中选择“新增启动”,之后分別在“名称”中输入Eclipse、“命令”中填/usr/local/bin/eclipse.sh,然后再为它随便找个喜欢的图标(我用的是/opt/eclipse/icon.xpm);再后按“确定”,桌面上就有eclipse的快捷方式了,以后可以直接双击这个图标启动Eclipse。

Eclipse 安装好后,已经内建了java开发环境(JDT)就可以直接开发Java 程序。

三:附

要是不习惯,eclipse英文环境,可以在eclipse.org的主站上下,它的语言包;装了语言包后,不光菜单成中文了,它的帮助文档也成中文了,爽吧^_^

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧