• Latest Code...

    Featured Post

    Implementing Hilt in a Kotlin Android Jetpack Compose Project with MVVM Architecture

     In modern Android development, maintaining a scalable codebase can be challenging, especially when it comes to dependency management. Hilt,...

    Eclipse - Failed to create the java virtual machine

    Mostly eclipse user developer stick this error sometimes or many times during on his developing careers. So lets find out some solution, how to fix "failed to create the java virtual machine".

    I have found some fine solution in stackoverflow and borrowing some answers here.

    Solutions 1
    ------------
    1. Open the eclipse.ini file from your eclipse folder,see the picture below.
    eclipse.ini
    2. Open eclipse.ini in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Now change the default value 256m (or 1024m) to 512m. You also need to give the exact java installed version (1.6 or 1.7 or other).
    max size
    Like This:
    -Xmx512m
    -Dosgi.requiredJavaVersion=1.6
    OR
    -Xmx512m
    -Dosgi.requiredJavaVersion=1.7
    Then it works .

    Solutions 2.
    -----------

    if solutions 1 is not working then try this:
    Try removing the -vm P:\Programs\jdk1.6\bin lines.

    Also, a general recommendation: set -Dosgi.requiredJavaVersion=1.6, not 1.5.

    Solution 3
    --------------
    There are two place in eclipse.ini that includes
    --launcher.XXMaxPermSize
    256m
    make it
    --launcher.XXMaxPermSize
    128m

    Solution 4.
    -------------------
    if all the above solutions is not working then, try this:

    Try to add



    -vm D:\Java\jdk1.6.0_29\bin\javaw.exe
    FYI: Refer sunblog
    Source:http://stackoverflow.com/questions/7302604/eclipse-error-failed-to-create-the-java-virtual-machine
    HappY CodinG

    Contact Form

    Name

    Email *

    Message *