Forgive the title, I am not asking to know if Java needs to be installed. I am asking if I can use Java for OpenKM without actually installing Java. The only application that needs Java on this server is OpenKM. I would like to minimize the attack surface of this Windows server by not installing java and instead using it from an extracted copy. Java is fully intact, just not hooked into the OS.
Here are is an example of how I would do this:
Maybe this is too esoteric?
This is my first post here, and as someone who has been working with various DM Systems for a little over 20 years now, I have to say this is an impressive piece of work. I inherited this OpenKM system that went from pilot to production without properly following your documentation - the DB is HSQL and the repository is over 240 GB now and I am sincerely doubting any attention was paid to the documented suggestions for configuration parameters.
Your time and consideration are much appreciated!
Daniel S. Gurrola II
Here are is an example of how I would do this:
- Create working JDK directory (C:\JDK in this case)
- Download latest version of JDK from Oracle (for example jdk-8u171-windows-x64.exe)
- With 7-Zip right click the jdk-XuXX-windows-x64.exe and select Open archive from the 7-zip context menu
- Browse into the .rsrc directory, then the 1033 directory, then the JAVA_CAB10 directory
- Right-click the packed file (for example: 111) and select Open inside from the context menu
- Right-click the tools.zip file, and select Open inside from the context menu
- Extract to C:\JDK
- Execute the following commands in cmd.exe:
- C:
- CD\
- CD JDK
- FOR /R %x IN (*.pack) DO C:\JDK\bin\unpack200.exe -r "%x" "%~dx%~px%~nx.jar" <--this will convert all .pack files into .jar files
- Setup JAVA_HOME and PATH manually to point to the JDK dir and its BIN subdirectory.
Maybe this is too esoteric?
This is my first post here, and as someone who has been working with various DM Systems for a little over 20 years now, I have to say this is an impressive piece of work. I inherited this OpenKM system that went from pilot to production without properly following your documentation - the DB is HSQL and the repository is over 240 GB now and I am sincerely doubting any attention was paid to the documented suggestions for configuration parameters.
Your time and consideration are much appreciated!
Daniel S. Gurrola II