【Linux】【Eclipse】【Java】Debian7 で、Eclipse Luna が起動しない

現象

 * Debian7(Debian Wheezy) + JDK(※1) の環境で、 + Eclipse LUNA の起動を試みたところ、
  スプラッシュ画面表示後、何もダイアログを表示せずに落ちる。
 * 以下「エラーログ表示」のログをはく。

補足

※1 JDKは、OracleJDK7,8 / OpenJDK7を試したが、現象は同じで落ちる
※2 JDK + Eclipse kepler だと正常に起動する
※3 OpenSUSE だと正常に起動する(以下の関連記事を参照のこと)
http://blogs.yahoo.co.jp/dk521123/33854227.html

エラーログ表示

hs_err_pidXXXX.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff79e40e73f, pid=7585, tid=140701888608000
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x5173f]  gdk_display_open+0x3f
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

原因

 * 以下のバグ票に載っている。
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430736

解決策

 * eclipse.iniの設定「--launcher.appendVmargs」の前に、以下の設定を追加する。

~~~
--launcher.GTK_version
2
~~~

サンプル

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.GTK_version
2
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m


関連記事

Linux(仮想環境) で、JDK / Tomcat / Eclipse の環境を構築する ~Debian編~

http://blogs.yahoo.co.jp/dk521123/33854227.html

【トラブル】【EclipseEclipse起動時のエラーについて

http://blogs.yahoo.co.jp/dk521123/31972761.html