• Eclipse和Maven的结合使用Please make sure the vm option in eclipse.ini


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

    在安装后,出现下列警告:

    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)设置系统安装的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.

    作者:张锋
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文连接,否则保留追究法律责任的权利。
    更多精彩文章可以观注
    微信公众号 soft张三丰

    微信交流群,添加群主微信,邀请入群
  • 相关阅读:
    .netcore 通过文件流形式导出Excel,部分列可写,其它列只读实例
    C# NPOI 锁定单元格设置只读
    C# NPOI导出Excel 表格宽度自适应,支持中文
    MySQL 5.7 开启binary log(logbin)及注意事项
    springboot 添加JWT接口认证
    MySql 按姓名 排序
    .netcore3.1 访问静态文件,如图片、Excel等
    Ajax如何设置成同步请求
    项目发布到IIS远程服务器
    在Winform程序中使用Spire.Pdf实现页面添加印章处理(转)
  • 原文地址:https://www.cnblogs.com/skyme/p/2145125.html
Copyright © 2020-2023  润新知