itVincent Blog - Java Working Fun!

          技術(shù)引領(lǐng)時(shí)代!
          posts - 117, comments - 181, trackbacks - 0, articles - 12

          在eclipse中安裝了m2eclipse(maven插件)

          在安裝后,出現(xiàn)下列警告:

          The Maven Integration requires 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 JRE’s are also using JDK installs.

          解決:

          (1)設(shè)置系統(tǒng)安裝的JDK目錄set your JDK as a default Java environment in eclipse (default installed JRE)

          Open eclipse. Click on ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’.

          If you can’t find any JDK on the list -> click ‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.

          After that – check this JDK on the list of installed JREs and click ‘OK’.

          (2)增加JDK路徑到eclipse.ini文件中add path to your SDK in eclipse.ini

          open ‘eclipse.ini’ and add there: -vm path_to_javaw_on_your_machine,so in my example it will be (jdk1.6.0_17 on Windows):-vm
          D:\\Java\jdk1.6.0_13\jre\bin\javaw
          不能有空格,否則要用~1代替,如: ‘Program Files’ is ‘Progra~1′. Notice 1: Do not use paths with spaces! Replace all dir names with spaces to their shortcuts. For example: ‘Program Files’ is ‘Progra~1′.
          要分為2行寫。Notice 2: ‘-vm’ is in the first line, path is in the second line

          your ‘eclipse.ini’ looks like this:

          -startup
          plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
          --launcher.library
          plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
          -showsplash
          org.eclipse.platform
          --launcher.XXMaxPermSize
          256m
          -vm
          D:\Java\jdk1.6.0_13\jre\bin\javaw
          -vmargs
          -Xms40m
          -Xmx256m
          -vm要在-vmargs前面。Notice : ‘-vm’ must be  "-vmargs" above

          重啟eclipse。Restart eclipse and everything should be fine.

          主站蜘蛛池模板: 浦县| 丰顺县| 潼南县| 灌阳县| 博罗县| 平阳县| 龙州县| 西乡县| 桑日县| 磐安县| 文成县| 大田县| 舟山市| 罗定市| 封丘县| 阜宁县| 清水河县| 稷山县| 邯郸市| 隆子县| 筠连县| 英山县| 南丰县| 阿勒泰市| 华宁县| 枝江市| 五常市| 墨江| 宜春市| 宿松县| 大荔县| 桦甸市| 仁寿县| 泉州市| 巴中市| 浠水县| 甘孜县| 盐边县| 苍溪县| 铜川市| 庆阳市|