Linux Deepin如何搭建java开发环境!我试了N编都安装不了!!!
Tofloor
poster avatar
zbyjtk
deepin
2011-12-22 21:29
Author
我在网上查找了许多方法都搭建不了java开发环境,所以在此请教各位高手:
1.如何安装JAVA,我从SUN下载的JAVA文件包是:jdk-7u2-linux-i586.rpm
2.如何安装ECLIPCE,我从ECLIPCE下载的文件包是:eclipse-java-indigo-SR1-linux-gtk.tar.gz
3.安装完后如何设置JAVA环境变量?


紧急求助!!!!
Reply Favorite View the author
All Replies
ManateeLazyCat
deepin
2011-12-22 21:45
#1
我很诧异你拿着 rpm 的包在 LD 上装。
Reply View the author
zbyjtk
deepin
2011-12-22 22:05
#2
请体谅一下我这个新手!!,谢谢!
Reply View the author
zbyjtk
deepin
2011-12-22 22:08
#3
在LD上怎么安装 RPM,ManateeLazyCat 能说得详细一些吗?
Reply View the author
ManateeLazyCat
deepin
2011-12-22 22:30
#4
Sun 和 Oracle 我不知道他们的 jdk 到底怎么了, 我建议安装 open-jdk

你在软件中心中安装下面三个包就行了:

openjdk-7-jdk openjdk-7-jre eclipse

或者终端中命令行安装:

sudo apt-get install openjdk-7-jdk openjdk-7-jre eclipse -y
Reply View the author
ManateeLazyCat
deepin
2011-12-22 22:43
#5
在LD上怎么安装 RPM,ManateeLazyCat 能说得详细一些吗?
Linux Deepin 是基于 Debian/Ubuntu , 所以安装的时候要用 deb 包, rpm 包是红帽平台的。
Reply View the author
1847211504
deepin
2011-12-23 00:27
#6
你可以下载那个 .gz 格式的,那个解压力,一配置环境变量就完事了
Reply View the author
ZiHang
deepin
2011-12-23 02:25
#7
你可以下载那个 .gz 格式的,那个解压力,一配置环境变量就完事了
这样可以吗??我也有楼主相同的问题!!
Reply View the author
s.******fe@gmail.com
deepin
2011-12-23 07:09
#8
[quote]你可以下载那个 .gz 格式的,那个解压力,一配置环境变量就完事了
这样可以吗??我也有楼主相同的问题!![/quote]
这样吧,我们正式版发布之后会做一个教程,里头把常见问题给写上,这个java的我们也写一个。
Reply View the author
qiansen1386
deepin
2011-12-23 15:09
#9
这个……netbeans呢?linux里貌似只有6.9版本的。不过6.9也行啊。我不太喜欢eclipse。我们上课都用netbeans的。很智能也很好用。至于它和eclipse有哪些技术上的争端,离我太遥远。
Reply View the author
stephen
deepin
2011-12-23 15:51
#10
这个……netbeans呢?linux里貌似只有6.9版本的。不过6.9也行啊。我不太喜欢eclipse。我们上课都用netbeans的。很智能也很好用。至于它和eclipse有哪些技术上的争端,离我太遥远。

sun的东西,落到oracle手里的,没有一个不烂掉的,似乎就vbox好一些。
Reply View the author
1847211504
deepin
2011-12-23 16:55
#11
[quote]你可以下载那个 .gz 格式的,那个解压力,一配置环境变量就完事了
这样可以吗??我也有楼主相同的问题!![/quote]
是啊,你可以试试
Reply View the author
1847211504
deepin
2011-12-23 17:00
#12
对了,我没有通过软件中心下载,而是直接去 oracle 网站下的 .gz 的包
Reply View the author
s.******fe@gmail.com
deepin
2011-12-23 19:52
#13
这个……netbeans呢?linux里貌似只有6.9版本的。不过6.9也行啊。我不太喜欢eclipse。我们上课都用netbeans的。很智能也很好用。至于它和eclipse有哪些技术上的争端,离我太遥远。
你都用了这么久了,没有学会去用软件源吗? 想要装一个软件的时候,先上网搜一下ubuntu内有没有这个包,然后用软件源安装,或者是去官网下载对应版本的软件包。
Reply View the author
zbyjtk
deepin
2011-12-24 21:04
#14
谢谢各位!
Reply View the author
ZiHang
deepin
2011-12-24 22:10
#15
[quote][quote]你可以下载那个 .gz 格式的,那个解压力,一配置环境变量就完事了
这样可以吗??我也有楼主相同的问题!![/quote]
是啊,你可以试试[/quote]
我在网上找到了一个方法!在终端上用#alien -c -d filename.tar.gz 这样就可以
转换deb了!!
Reply View the author
yuchen208
deepin
2011-12-25 07:31
#16
那个深度的深度软件中心里有eclipse下载其中有JDK在内,不需要在自己下载我一直这样用
Reply View the author
zhang12345shun
deepin
2016-01-17 09:19
#17
1. 下载Sun版JDK压缩包(.tar.gz),选择其中的32/64位Linux版本。
2. 将其解压缩:sudo tar -zxvf ~/Downloads/jdk-8u45-linux-i586.tar.gz -C /usr/lib 中参数-C后面的路径是解压缩的目标路径。
3.sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 1000
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 1000
Reply View the author
zhang12345shun
deepin
2016-01-17 09:39
#18
参考官网:
Starting with version 8u40, the JDK installation is integrated with the alternatives framework and after installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java, javac, javadoc, and javap can be invoked from the command line.
Reply View the author
yjqcx89
deepin
2016-01-18 01:11
#19
5年前的贴子居然被挖出来了。。。
Reply View the author