On Windows 8.1 I am installing a program which looks for the Java vm location.
It runs without any problem with these environment variables set manually:
JAVA_HOME="C:\Program Files (x86)\Java\jre1.8.0_102"
PATH=%JAVA_HOME%\bin
It does NOT run with this:
JAVA_HOME="C:\Program Files (x86)\Java\jre1.8.0_102"
PATH=%JAVA_HOME%\bin;%PATH%
Where I have written %PATH%
above means all other necessary system paths separated with semicolons etc.
The program can only find the jvm when PATH
is a single directory entry.
I have tried running the program from a batch file and temporarily changing the PATH
. I understand that the temporary change only exists while that command screen is open.
This is my batch file:
set PATH=%JAVA_HOME%\bin
start Epson_JavaPOS_1.1.4 blah blah.exe
cmd /K
Problem is I think the temp value is not being retained when the program installation starts and user input is detected.
How can I accomplish this?