Eclipse crashes at startup in Ubuntu 12.04 displaying an error dialog with the message “An error has occurred. See the log file /home/user/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/[a_long_number].log.” The log file is attached to the report.
Eclipse Indigo is not compatible with Oracle’s JDK, in my case, it is JDK 1.6.0_45.
But it works with Open jdk, so idea is to change Oracle JDK to Open JDK in ubuntu 12.04
I supposed that you have already a Open JDK in your system. If not you could find it in the internet.
1. What your have to do first is modify your /etc/profile :
Add or Modify like this :
JAVA_HOME=/usr/local/java/your_open_jdk_folder PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export JAVA_HOME export PATH
Don’t forget to relancer the profile file with command . /etc/profile
2. And then notify the system Java is available :
sudo update-alternatives --install "/usr/bin/java" "java"
sudo update-alternatives --install "/usr/bin/javaws" "javaws"
3. And set java runtime environment :
sudo update-alternatives --set java /your_open_java_folder/bin/java
sudo update-alternatives --set javaws /your_open_java_folder/bin/javaws