[英]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. 最近,我为正在开发的POS应用程序购买了Epson TM-T20II热敏票据打印机。 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
. 每当我尝试从Epson网站(或附带的软件cd)安装JavaPOS ADK时,
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
我尝试按照此答案进行操作,但这给我留下了另一个错误:
ZeroGr2: Windows DLL failed to load
I am running Windows 10 Pro x64 and have installed the anniversary update. 我正在运行Windows 10 Pro x64,并且已经安装了周年纪念更新。
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 为了防止Windows错误2代码,请从命令提示符(以admin身份)启动.exe并添加一个参数LAX_VM,如下所示
> Epson_JavaPOS_ADK_1141.exe LAX_VM "C:\\Java\\jre\\bin\\java.exe"
> 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. 我认为第二个问题是由于Java 8 64位JRE出现问题。 I can reproduce that error with the 64-bit jre1.8.0_101 but using the 32-bit version works fine.
我可以使用64位jre1.8.0_101重现该错误,但使用32位版本可以正常工作。 I also tried it with a 64-bit JRE7 and that worked as well.
我还使用64位JRE7进行了尝试,效果也很好。
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 : 当我尝试安装Epson JavaPOS ADK时,最终出现两个相同的错误:
Windows error 2 occured while loading the Java VM
ZeroGr2: Windows DLL failed to load
ZeroGr2: Windows DLL failed to load
I manage to make it work by : 我设法通过以下方式使其起作用:
Epson_JavaPOS_ADK_1141.exe LAX_VM "C:\\Program Files (x86)\\Java\\jdk1.8.0_101\\bin\\java.exe"
in a admin command terminal Epson_JavaPOS_ADK_1141.exe LAX_VM "C:\\Program Files (x86)\\Java\\jdk1.8.0_101\\bin\\java.exe"
在管理命令终端 jdk1.8.0_101
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.
我也不需要更改安装程序的兼容性设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.