Community Forums
Results 1 to 5 of 5

Thread: Windows error 2 occured while loading the Java VM - Install Anywhere

  1. #1
    Join Date
    Oct 2015
    Posts
    2

    Windows error 2 occured while loading the Java VM - Install Anywhere

    Hi ,

    We are not able to proceed with the installer created with InstallAnywhere 2012 , with java 1.8 , 60 version.
    While staring the installer it throws the alert message "Windows error 2 occured while loading the Java VM "
    Java is installed in my system and I am able to run other applications .

    Please suggest what can be done to resolve the issue.

    Thanks,
    Smitha

  2. #2
    Join Date
    Aug 2015
    Posts
    6

    Lightbulb

    Hi Smitha,

    Verify that you are not installing 64 bit application on 32 bit OS or 64 bit jre on 32 bit OS. Sometimes errors that are thrown are not really helpful but even I have faced such issue. Verify whether System and jre architecture are same.

    Thanks

  3. #3
    Join Date
    Oct 2015
    Posts
    2

    Windows error 2 occured while loading the Java VM

    Hi Karthik,

    We are using the correct bit java .
    I zeroed down on the problem, the way to resolve it is :

    The System Environment Path now has : c:\programdata\oracle\java\javapath
    This path has shortcuts to the JRE bins

    However if I remove this path and add the actual JRE bin then it works.

    I cannot figure out why it does not work for the shortcut. There is no issue if I uninstall and install an earlier version of Java.

    Can you help me with the issue.

    Thanks,
    Smitha Rajasenan

  4. #4
    Join Date
    Aug 2015
    Posts
    6

    Smile

    Quote Originally Posted by SmithaSant View Post
    Hi Karthik,

    We are using the correct bit java .
    I zeroed down on the problem, the way to resolve it is :

    The System Environment Path now has : c:\programdata\oracle\java\javapath
    This path has shortcuts to the JRE bins

    However if I remove this path and add the actual JRE bin then it works.

    I cannot figure out why it does not work for the shortcut. There is no issue if I uninstall and install an earlier version of Java.

    Can you help me with the issue.

    Thanks,
    Smitha Rajasenan

    Hi Smitha,

    Normally installAnywhere looks for valid jvm.dll file in jre path under bin/server or bin/client or bin/classic (in case of IBM jre). If it doesn't find it, the installation will not proceed. Avoid using shortcuts in path environment variable.

    Thanks

  5. #5
    Join Date
    May 2014
    Posts
    4
    Quote Originally Posted by karthik.bs84 View Post
    Hi Smitha,

    Normally installAnywhere looks for valid jvm.dll file in jre path under bin/server or bin/client or bin/classic (in case of IBM jre). If it doesn't find it, the installation will not proceed. Avoid using shortcuts in path environment variable.

    Thanks
    Karthik,

    The path to the shortcut is added to the system variable when we install Java 8.

    And I tried renaming the shortcut to something else instead of java.exe but still it doesnt work..
    The only solution is to remove "c:\programdata\oracle\java\javapath" from the path variable.

    Not sure why the launcher is stuck with this folder.

    Regards,
    Kapil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •