This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Windows error 2 when trying to start installer
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 04, 2014
10:07 AM
Windows error 2 when trying to start installer
InstallAnywhere 2012 Standard (Build 4390)
Making an installer without VM. When launched on Windows 7 a LaunchAnywhere Error dialog pops up with the message "Windows error 2 occured while loading the Java VM"
(BTW 'occurred' is spelled wrong.)
The Environment Variable JAVA_HOME is set to C:\Program files\Java\jre7
If I use install.exe LAX_VM "C:\Program files\Java\jre7", it works a bit better in that instead of getting the error immediately, it waits until it reaches 100%.
I tried adding %JAVA_HOME% to Project/JVM Settings/Windows tab/Search Path tab, but it did not help.
What else can I try?
Making an installer without VM. When launched on Windows 7 a LaunchAnywhere Error dialog pops up with the message "Windows error 2 occured while loading the Java VM"
(BTW 'occurred' is spelled wrong.)
The Environment Variable JAVA_HOME is set to C:\Program files\Java\jre7
If I use install.exe LAX_VM "C:\Program files\Java\jre7", it works a bit better in that instead of getting the error immediately, it waits until it reaches 100%.
I tried adding %JAVA_HOME% to Project/JVM Settings/Windows tab/Search Path tab, but it did not help.
What else can I try?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 04, 2014
11:28 AM
Ok, turns out I need to add C:\Program files\Java\jre7\bin to the system's Environment PATH variable, then the installer hums along.
Instead of altering the environment, can this be handled in the installer setup?
Instead of altering the environment, can this be handled in the installer setup?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 06, 2014
04:42 AM
Hello
I think you can try adding the path ( C:\Program files\Java\jre7\bin) by declaring a varibale in Access Path Name under Edit > Preferences > Source Paths.
Regards
JSaroha
I think you can try adding the path ( C:\Program files\Java\jre7\bin) by declaring a varibale in Access Path Name under Edit > Preferences > Source Paths.
Regards
JSaroha
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 13, 2015
12:32 PM
I am not a computer wiz.
can you give exact directions how to do that?
installed once without problem, (unistalled because program didn't work) now I get error 2.
have latest JAVA.
thanks
can you give exact directions how to do that?
installed once without problem, (unistalled because program didn't work) now I get error 2.
have latest JAVA.
thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2015
09:07 PM
I spent an entire day trying to get lmadmin installed on my home machine.
Then, it occurred to me. Why do all the solutions involve adding Jvm7 to the search path?
It's not JAVA8 compatible. Sigh.
The ECAD tool company I have to deal with doesn't think I need "lmadmin". But, management insists on having it. If this has been fixed by Flexera, I'm stuck with what I have saved away in the cloud, now joined by the final release of JVM 7 installer.
I love lmadmin. Keeps people from wanting to complain at me.
Then, it occurred to me. Why do all the solutions involve adding Jvm7 to the search path?
It's not JAVA8 compatible. Sigh.
The ECAD tool company I have to deal with doesn't think I need "lmadmin". But, management insists on having it. If this has been fixed by Flexera, I'm stuck with what I have saved away in the cloud, now joined by the final release of JVM 7 installer.
I love lmadmin. Keeps people from wanting to complain at me.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2015
07:38 AM
Hi
I have problem with installed program on Windows and Java 1.8.0_60. After double click on installation file I receive "Windows error 2 occurred while loading the Java VM" information,
Installer works perfect for each older version Java, than Java 1.8.0_60.
I found two workaround for this case. First is remove 'C:\ProgramData\Oracle\Java\javapath' path from PATH System Variable. Second is run installation file from command console with parameter LAX_VM (example: installer.exe LAX_VM "C:\Program Files\java\jdk1.8.0_60\bin\java.exe").
Any above workaround satisfied me - I need to have normal work installer through double click (without modifying PATH Variable) with Java 1.8.0_60.
Have you any idea how to solve this problem?
Br
Marcin
I have problem with installed program on Windows and Java 1.8.0_60. After double click on installation file I receive "Windows error 2 occurred while loading the Java VM" information,
Installer works perfect for each older version Java, than Java 1.8.0_60.
I found two workaround for this case. First is remove 'C:\ProgramData\Oracle\Java\javapath' path from PATH System Variable. Second is run installation file from command console with parameter LAX_VM (example: installer.exe LAX_VM "C:\Program Files\java\jdk1.8.0_60\bin\java.exe").
Any above workaround satisfied me - I need to have normal work installer through double click (without modifying PATH Variable) with Java 1.8.0_60.
Have you any idea how to solve this problem?
Br
Marcin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2015
05:19 AM
Marianciu
I work with InstallAnywhere-2014 and Jre1.8.0_65. The same problem occured with me when I define 'C:\ProgramData\Oracle\Java\javapath' to the PATH System Variable.
Resolution for me was installation of Jre8 specifically in the C:\ProgramData\Oracle\Java\javapath.
Val
I work with InstallAnywhere-2014 and Jre1.8.0_65. The same problem occured with me when I define 'C:\ProgramData\Oracle\Java\javapath' to the PATH System Variable.
Resolution for me was installation of Jre8 specifically in the C:\ProgramData\Oracle\Java\javapath.
Val