M2 Eclipse produces a warning about using JRE instead of JDK

This topic contains 13 replies, has 6 voices, and was last updated by Profile photo of support-joy support-joy 6 years, 2 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #285279 Reply
    Profile photo of dleal
    dleal
    Member

    This message has not been recovered.

    #285283 Reply
    Profile photo of Loyal Water
    Loyal Water
    Member

    This message has not been recovered.

    #285310 Reply
    Profile photo of dleal
    dleal
    Member

    I have tried to use the -vm argument, but following the Eclipse User Manual for configuration of this parameter:

    http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm

    Then:

    -vm C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw

    but I get the error: “Could not create Java Virtual Machine”

    I get the same error without double quotes.

    My Java bin is on:

    C:\Archivos de programa\JAVA\java\jdk\current\bin>java -version
    java version “1.6.0_02”
    Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
    Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)

    C:\Archivos de programa\JAVA\java\jdk\current\bin>

    About sending an issue for including maven support please let me know where to add it, on the MyEclipse webpage: http://www.myeclipseide.com/

    I don’t see any link into bug tracking web.

    Thanks in advance,

    David

    #285324 Reply
    Profile photo of Loyal Water
    Loyal Water
    Member

    -vm C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw

    Try this:-
    -vm C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw.exe

    Also, are you making the change in eclipse.ini file are you appending the MyEclipse shortcut ?

    #285336 Reply
    Profile photo of dleal
    dleal
    Member

    it doesn’t work, I get the same error during startup.

    #285358 Reply
    Profile photo of Loyal Water
    Loyal Water
    Member

    Can you paste the contents of the eclipse.ini file here for me so that I can test this at my end as well.

    #285372 Reply
    Profile photo of dleal
    dleal
    Member

    -showsplash
    com.genuitec.myeclipse.product
    –launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms128m
    -Xmx512m
    -Duser.language=en
    -XX:PermSize=128M
    -XX:MaxPermSize=256M
    -vm C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw.exe

    #285384 Reply
    Profile photo of Loyal Water
    Loyal Water
    Member

    Try this :-

    
    -vm C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw.exe -showsplash
    com.genuitec.myeclipse.product
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms128m
    -Xmx512m
    -Duser.language=en 
    -XX:PermSize=128M 
    -XX:MaxPermSize=256M
    
    #285387 Reply
    Profile photo of dleal
    dleal
    Member

    I get the same result, it can’t start the JVM. Any other suggestion?. Thanks.

    #285389 Reply
    Profile photo of Loyal Water
    Loyal Water
    Member

    Well, in that case I would like you to right click on the MyEclipse shortcut and go to Properties. In the Target textbox, append the -vm argument at the end.

    This is what my target looks like:-

    
    "C:\Users\vaio\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Users\vaio\MyEclipse 6.0\jre\bin\javaw.exe"
    
    #287538 Reply
    Profile photo of quailbot
    quailbot
    Member

    @support-nipun wrote:

    Try this :-

    
    -vm C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw.exe -showsplash
    com.genuitec.myeclipse.product
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms128m
    -Xmx512m
    -Duser.language=en 
    -XX:PermSize=128M 
    -XX:MaxPermSize=256M
    

    You are missing some new lines. Try this:

    
    -vm
    C:\Archivos de programa\JAVA\java\jdk\current\bin\javaw.exe
    -showsplash
    com.genuitec.myeclipse.product
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms128m
    -Xmx512m
    -Duser.language=en 
    -XX:PermSize=128M 
    -XX:MaxPermSize=256M
    
    #289241 Reply
    Profile photo of bvickery
    bvickery
    Member

    @support-nipun wrote:

    Well, in that case I would like you to right click on the MyEclipse shortcut and go to Properties. In the Target textbox, append the -vm argument at the end.

    This is what my target looks like:-

    
    "C:\Users\vaio\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Users\vaio\MyEclipse 6.0\jre\bin\javaw.exe"
    

    The above worked for me, I had the exact same issue with m2 eclipse. I think that if you have -vm on the cmd line target (which MyEclipse put by default), that overrides what is found in eclipse.ini…

    #316139 Reply
    Profile photo of anadi kumar
    anadi kumar
    Member

    G:\study\eclipse-jee-galileo-SR2-win32\eclipse\eclipse.exe -vm “E:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe”

    This works fine. 🙂

    Regards,
    Anadi KUMAR
    Architecture and R2ds, Channels and Framework, Software Engineer | HSBC Technology and Services – Global Technology
    HSBC Software Development (India)Limited
    GLT 4.0 – Panchshil Tech. Park, Block D, S.No. 19, Hissa 2A/11/2, Yerawada, Pune, 411006.
    India.

    Mobile. +91 9822622054
    Email. anadikumar@hsbc.co.in
    Email. anadikumar@gmail.com

    #316158 Reply
    Profile photo of support-joy
    support-joy
    Member

    Anadi ,

    Thank you for sharing your working solution with us. This would help other forum users.

    Best.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: M2 Eclipse produces a warning about using JRE instead of JDK