The first step is to download the JDK, and eclipse I will not be in the detail/official website of the download. (Remember to download the corresponding version of your own!)
There's a problem with Kali Linux, and it's a problem that has been bothering everyone--kali Linux comes with Java, but the JDK version is 1.6. And eclipse requires JDK version 1.8 or more. Many people will not uninstall Jdk1.6,eclipse but the default is 1.6. How to modify it? I also tried the various methods on the site, and finally the most basic way to solve. Configure environment variables, default configuration to 1.8 OK.
How to do it specifically:
sudo nano/etc/profile
In the end, add:
Java_home=/opt/jdk1.8.0_60
Path= $JAVA _home/bin: $PATH
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Java_home
Export PATH
Export CLASSPATH
Remember the first java_home is the path of your JDK, don't copy my Oh, otherwise it is useless. The following two paths can be copied with no problem.
Some people on the Internet are giving this paragraph:
#export jdk_home=/opt/jdk1.8.0_60
#export jre_home= $JAVA _home/jre
#export path= $JAVA _home/bin: $JRE _home/bin: $PATH
When everything on top of you is done, you'll find that it's not going to work.
Problematic frame:
# C [libgdk-x11-2.0.so.0+0x5173f] gdk_display_open+0x3f
#
# Core dump written. Default location:/opt/eclipse/core or core.11840
#
# A error report file with more information is saved as:
#/opt/eclipse/hs_err_pid11840.log
#
# If you would as to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual machine in native code.
# See problematic frame for where to report the bug.
If this problem arises, do not panic. You only need to open Ecilpse.ini in the Eclipse directory, and
Add on top of--launcher.appendvmargs
--launcher. Gtk_version
2
If the same as mine should be in 15, 16 line this way. Okay, well, I've finally installed it.
is to let me this small white to try for a long time.
Well, it's really that simple, but I spent a whole two days trying all sorts of ways. Finally, this is the most basic method. What a smelly man.
Jiangsu Nanjing Zhongzhiyuan 904727147
A series of issues related to Kali Linux installation eclipse