1 首先安装eclipse,需要在你的虚拟机有一个.gc的文件,然后你进行解压,解压命令 tar ...就不多说了,
正常解压完了之后在终端敲命令就会打开eclipse(理想状态下...)
但是打不开呢? 以及遇到的问题
1. 安装jdk了吗?
eclipse需要的是jdk1.8的支持,所以你需要去安装jdk,
提供安装JDK的教程:https://blog.csdn.net/qq_39705793/article/details/82953601
2. 都弄好了之后 通过 ./eclipse 去打开eclipse, 控制台报错:
bash: ./eclipse: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
常用的安装因为系统软件位数问题,如:64位系统中安装了32位程序了,
是因为64位系统中安装了32位程序
解决方法:
yum install glibc.i686
3. 再次打开./eclipse
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
在虚拟机设置里调整一下处理器数量,把1变成2
3. 再次打开eclipse
OpenJDK 64-Bit Server VM warning: You have loaded library /home/admin/eclips
这个就是你的eclipse与JDK版本不一致,将他们的版本都弄成一致就好了
...........还有一些其他的问题,可以在下方留言,博主看到会第一事件回复Linux安装eclipse的问题(搞了一下午,基本差不多了)