I assume that this works under the 64-bit taste of windows.
64-bit Windows does smart things for backward compatibility with 32-bit. Registry entries and file search paths are automatically redirected.
The command line you are using will have a 64-bit command line.
To run the 32-bit command line, run% windir% \ SysWoW64 \ cmd.exe. You should be able to reproduce the failure state. 32-bit NSIS will run the batch file in 32-bit mode.
You need to determine how the java.exe file is under 64 bits. If you publish your batch file here, there must be something fairly obvious that is being distracted.
source share