log4j update bat file on Windows
Oxygen general issues.
-
- Posts: 38
- Joined: Thu Feb 21, 2013 11:44 pm
log4j update bat file on Windows
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?
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: log4j update bat file on Windows
Post by cristi_talau »
Hello,
You mentioned you tried several values for JAVA_HOME, including the full path to "java.exe". The JAVA_HOME should have the following format: "C:\Program Files\Java\jdk1.8.0_221", or probably "c:\Users\myuser\ditacms41\jre" in your case. Inside this folder you should have a "bin" subfolder with "java.exe" in it.
Can you check whether trying this value works?
Best,
Cristian
You mentioned you tried several values for JAVA_HOME, including the full path to "java.exe". The JAVA_HOME should have the following format: "C:\Program Files\Java\jdk1.8.0_221", or probably "c:\Users\myuser\ditacms41\jre" in your case. Inside this folder you should have a "bin" subfolder with "java.exe" in it.
Can you check whether trying this value works?
Best,
Cristian
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service