Date Created: Fri 21-Jan-2011

Related Document Categories:


    Error when loading Eclipse with Maven Plugin installed

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



    27/12/10 22:06:41 GMT: Eclipse is running in a JRE, but a JDK is required
    Some Maven plugins may not work when importing projects or updating source folders.
    27/12/10 22:06:52 GMT: Updating index central|http://repo1.maven.org/maven2
    27/12/10 22:07:17 GMT: Updated index for central|http://repo1.maven.org/maven2

    Solution in my case was to edit eclipse.inoi and add this line

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

    Note the format of the -vm option - it is important to be exact:

    The -vm option and its value (the path) must be on separate lines.
    The value must be the full absolute path to the Java executable, not just to the Java home directory.
    The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.

    Example:

    -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
    -product
    org.eclipse.epp.package.jee.product
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vm
    C:\Java\jdk1.6.0_23\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m
    -Dsun.lang.ClassLoader.allowArraySyntax=true

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories