ProfileManagementがエラーで起動しない件について
マニュアル通りにやっても…。
なぜか以下のようなエラーがでて起動しないので、
プロファイル作成ができない…。
ちなみに
環境はAIX7.1(64bit)・WebSphere8.5.5(64bit)。
# cd /usr/WebSphere/AppServer/bin/ProfileManagement # pmt.sh The program 'eclipse' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (無効な Window パラメータ)'. (Details: serial 1698 error_code 3 request_code 42 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
そもそもProfileManagementはEclipseベースで動いているようで…。
pmt.shと同じ階層に「eclipse64」(32bitなら「eclipse32」なのかな)がいます。
上記シェル内で、32か64のどちらかをキックするようにしてあります。
※以下、一部抜粋
case ${COMMAND_SDK} in *32) ${binDir}/eclipse32/pmt.sh "$@" ;; *64) ${binDir}/eclipse64/pmt.sh "$@" ;; esac
その1:正しいJREが設定されているか、/etc/enveiroment の確認・編集
私の環境では32bitと64bitが混ざって入っていたので、
利用する64bitにパスを変更しました。(再起動必要)
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5_64/jre/bin:/usr/java5_64/bin
その2:eclipse.ini に 魔法のコード
pmt.shと同じ階層にあるeclipseフォルダ内にあるeclipse.iniに以下の一文を追加。
-vmargs -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
さいごに
上記の2つでひとまず起動しましたが、「その2」は一度起動されたら
削除しても起動します…うーん、なんなんだろう…。