[OS] Kali
When I use eclipse for Luna, I got the message as below:
Version 1.6.0_13 of the JVM is not suitable for this product. version:1.7 or greater is required.
Solve it as below:
Step_1:unpack Eclipse
$ tar zxvf eclipse-standard-luna-r. tar. gz
Step_2:go into the Eclipse directory
$ CD Eclipse
Step_3:delete it ' s JRE directory
$ rm -RF jre/
Step_4:run the Eclipse
./eclipse
It starts, then the bug has been fixed.
We'll configure further for easily use. Steps as below.
Step_1:move the eclipse to our pointed directory and the privilege.
sudo mv eclipse/opt//optsudochown -R root:root eclipsesudo chmod -R +r Eclipsesudochmod +x 'sudofind Eclipse -type d '
Step_6:then Create an eclipse executable in my path
sudo Touch /usr/bin/eclipsesudochmod755 /usr/bin/Eclipse sudo nano/usr/bin/eclipse
With this contents
#!/bin/shexport eclipse_home="/opt/eclipse"$ECLIPSE _ HOME/eclipse $*
Step_7:then Create a Gnome menu item
sudo nano/usr/share/applications/eclipse.desktop
With this contents
[Desktop Entry] Encoding=utf-8Name=eclipsecomment=Eclipse ideexec=Eclipseicon= /opt/eclipse/icon.xpmterminal=Falsetype=applicationcategories=gnome; application;development; Startupnotify=true
Step_8:configure
You are now having a working eclipse. But run this command first to initialise the set up.
/opt/eclipse/eclipse-clean
Then from here on you can run from the menu item applications/programming/eclipse
Version 1.6.0_13 of the JVM is not suitable for this product. version:1.7 or greater is required. [Solved]