EasyXLS

Why do I get "Windows error 2 occurred while loading the JAVA VM" when running the Java installer

Concept

The following errors might occur when running the EasyXLS installer:

Windows error 2 occurred while loading the JAVA VM

or

Could not find a valid Java virtual machine to load

Possible reason #1: Java Runtime Environment 1.6 or later not installed

EasyXLS requires JRE 1.6 or later on the machine running EasyXLS. Java Runtime Environment 1.6 or later must be installed.

Possible reason #2: Windows 64-bit, EasyXLS installer 64-bit and JRE 1.6 64-bit or later not installed

EasyXLS requires JRE 1.6 64-bit or later on the machine running EasyXLS. Java Runtime Environment 1.6 64-bit or later must be installed. The error occurs if only JRE 32-bit is installed.

Another option is to use EasyXLS installer for 32-bit.

Possible reason #3: Java Runtime Environment 1.8_60 or later

EasyXLS uses Install Anywhere engine for the installer. Java 8 update 60 or later might not be detected by the engine.

Possible solutions are:

I) Use LAX_VM parameter when launching the installer from command prompt:

"installer.exe" LAX_VM "C:\Program Files\Java\jdk1.8.0_65\bin\java.exe"

The path to JRE might be different on your machine, so the command line must be changed accordingly.

II) Download the universal EasyXLS installer that is named "EasyXLS for other" on the website.

To run the setup you have two options:

1. Double-click on EasyXLS_Trial_for_Java.jar

or

2. Run

java -jar EasyXLS_Trial_for_Java.jar

from command line.


Available for: Professional, Excel Writer, Excel Reader, Express Excel Writer
Go to top

EasyXLS Excel libraries:

Java
Java Excel Library
full Java version to import, export or convert Excel files
Java Excel Writer
Java version to create and export Excel files
Java Excel Reader
Java version to read and import Excel files
Java Express Excel Writer
limited Java version to create and export Excel files in predefined formats
Download EasyXLS™ Excel Library for Java

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2010
MS Excel 2013
MS Excel 2016
MS Excel 2019
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT