#eclipse editor

EclipseにMavenプラグインインストール後のエラー: "Eclipse is running in a JRE, but a JDK is required"

EclipseにMavenのプラグインをインストールした後にEclipseを起動したら以下のエラーメッセージが出ました。

<a title=”Maven Integration for Eclipse JDK Warning” rel=”lightboxpics834” href=”https://images.kinopyo.com/wp-content/uploads/2010/01/MavenIntegrationforEclipseJDKWarning.jpg)><img class=”attachment wp-att-835 “ src=”https://images.kinopyo.com/wp-content/uploads/2010/01/MavenIntegrationforEclipseJDKWarning.jpg) alt=”Maven Integration for Eclipse JDK Warning” width=”441” height=”181” /></a>

The Maven Integration required that Eclipse be running in a JDK,
because a number of Maven core plugins are using jars from the JDK.

Please make sure the -vm option in eclipse.ini is pointing to a JDK and
verify that Installed JREs are also using JDK installs.

使ってた環境は確かにJREのみがあってJDKはなかったんです。 回避策としては

JDKのインストール

JDKのダウンロードはこちら: Sun Java インストール後JAVA_HOMEとPATH環境変数もあわせて編集 エクスプローラ→マイコンピュータ→右クリック→プロパティ→詳細設定タブ→環境変数ボタン

eclipse.iniの編集

jdkのパスはインストール先に合わせて下記内容を追記 vmの後に改行が必要

 -vm
C:\Java\jdk1.6.0_18\bin\javaw.exe

これで再起動したらエラーメッセージは出なくなりました。

過去のコメント

以前のブログに寄せられたコメントを、当時のまま保存しています。

Qihuan Piao

朴 起煥

中国育ち、東京暮らし。読んだり書いたり、時には考え込んだり。親になってから5年ほど、ブログ(とその他もろもろ)は完全停止していたけど、気づけばまた書いている。ここにはそんな寄り道の記録を書いています。結論が出ない話も多いけど、それもまたよし。

その頃、英語で書いたもの

PHP Basic - Variables, Datatypes, Operators and Constants

2010年3月24日