log4j update bat file on Windows
Posted: Thu Dec 23, 2021 7:46 pm
We're running an older version of the oXygen framework inside our Ixiasoft CMS, so we're having to run the oxygen-log4j-patcher tooling. I had zero issues on macOS doing this, but our Windows users are struggling and I'm hoping maybe somebody will have some ideas on how to fix this.
java.exe exists in the their ditacms directory (example path):
c:\Users\myuser\ditacms41\jre\bin\
We've had to setup a JAVA_HOME because most, if not all, users don't have that environmental variable set.
When we run the .bat file, it complains that it can't find java.exe in JAVA_HOME. We've tried a few iterations of setting JAVA_HOME (including full java.exe as part of it). Nothing changes the message that the .bat file can't find java.exe.
When we do: cat %JAVA_HOME%, is displays the path we set. When we just use that path in a command line window, Java works. I'm stumped at what else we can do to fix this. Any ideas on why the .bat file won't find the java.exe that's in the \jre\bin directory?
java.exe exists in the their ditacms directory (example path):
c:\Users\myuser\ditacms41\jre\bin\
We've had to setup a JAVA_HOME because most, if not all, users don't have that environmental variable set.
When we run the .bat file, it complains that it can't find java.exe in JAVA_HOME. We've tried a few iterations of setting JAVA_HOME (including full java.exe as part of it). Nothing changes the message that the .bat file can't find java.exe.
When we do: cat %JAVA_HOME%, is displays the path we set. When we just use that path in a command line window, Java works. I'm stumped at what else we can do to fix this. Any ideas on why the .bat file won't find the java.exe that's in the \jre\bin directory?