[m2eclipse] Start Eclipse with JDK instead of JRE

If you install the m2eclipse Plugin for the  Maven Integration in Eclipse, this Error could possibly be shown in the Eclipse console:

Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.

If you have this issue, you should edit your eclipse.ini and add the following lines (on a Windows System) :

-vm
C:\path\to\JDK\bin\javaw.exe

Now your Eclipse should use the JDK to run with and the m2eclipse plugin should be happy.

Share this Diese Icons verlinken auf Bookmark Dienste bei denen Nutzer neue Inhalte finden und mit anderen teilen können.
  • MisterWong
  • del.icio.us
  • Google Bookmarks
  • Facebook
  • TwitThis
  • DZone
  • Digg
  • Print

5 Gedanken zu “[m2eclipse] Start Eclipse with JDK instead of JRE

  1. hab ich getan. aber dann kann ich eclipse nicht mehr öffnen :(.
    Stattdessen bekomme ich folgende meldung:
    Could not create the Java virtual machine. :( :(

  2. @Gemma
    Das kann viele Gründe haben. Zuerst einmal würde ich schauen, ob du Eclipse genügend Speicher zur Verfügung stellst. Wo genau hast du in der eclipse.ini das Parameter eingefügt? Hier ein Auszug aus meiner eclipse.ini

    —8<—– –launcher.XXMaxPermSize 1024m -vm C:/Program Files/Java/jdk1.6.0_18/bin/javaw.exe -showsplash org.eclipse.platform –launcher.XXMaxPermSize 1024m -showsplash org.eclipse.platform –launcher.XXMaxPermSize 1024m —–8<—–

  3. getan aber geht auch nicht.

    ich nutzte eclipse 3.6 HELIOS, jdk1.6.0_20 und jre6.

    und übrigens normal maven läuft bei mein betriebsystem windows 7.

    mfg

  4. Hm sehr komisches Verhalten deiner Eclipse Installation. Tritt das Problem bei einer frischen Eclipse Installation mit dem m2eclipse Plugin auch auf?

  5. hallo! ich habe nochmal jre6 und jdk neu installiert und nochmal eclipse. danach gehts alles reibungslos~ aber schon komisch oder?
    Aber trozdem vielen dank

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert