简体   繁体   中英

Epson JavaPOS ADK install - Windows error 2 occured while loading the Java VM

I recently bought an Epson TM-T20II thermal receipt printer for a POS application I'm developing. Whenever I try to install the JavaPOS ADK from the Epson site (Or the included software cd, for that matter) I get Windows error 2 occured while loading the Java VM .

I tried following this answer but that leaves me with another error: ZeroGr2: Windows DLL failed to load

另一个错误:(

I am running Windows 10 Pro x64 and have installed the anniversary update.

Any help on resolving this error and getting the installation to complete would be very much appreciated.

To prevent the Windows error 2 code, start the .exe from the command prompt(as admin) and add a paramater LAX_VM, so something like

> Epson_JavaPOS_ADK_1141.exe LAX_VM "C:\\Java\\jre\\bin\\java.exe"

I think the second problem is because of an issue with the Java 8 64-bit JRE. I can reproduce that error with the 64-bit jre1.8.0_101 but using the 32-bit version works fine. I also tried it with a 64-bit JRE7 and that worked as well.

Edit: it seems you need to start the command prompt as admin as well.

When I tried to install the Epson JavaPOS ADK, I end up with the two same errors :

  • Windows error 2 occured while loading the Java VM
  • then ZeroGr2: Windows DLL failed to load

I manage to make it work by :

  • Launching the installer with @TrollGate's LAX_VM parameter : ie : Epson_JavaPOS_ADK_1141.exe LAX_VM "C:\\Program Files (x86)\\Java\\jdk1.8.0_101\\bin\\java.exe" in a admin command terminal
  • Using a 32 bits JVM : I used the 32 bits jdk1.8.0_101

I didn't need to launch the terminal as administrator to make it work, but the installation manual states that it should be run with administrator's privilege . I didn't need to change the compatibility settings of the installer either.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM