Issues running excutable RRS feed

  • Question

  • I'm trying to install java JDK through an executable but it cannot run thru the command line. I would like to figured out how to install this JDK in to my windows container.  

    Thank You!

    Monday, May 20, 2019 4:08 PM

All replies

  • The most straightforward way to get a JDK into a container is to copy from the JDK hierarchy installed on your local machine. For example, copy everything from C:\Program Files\Java\jdk1.<your JDK> into a folder in the container. Use the Docker ADD or COPY directives. Be sure to get the relative paths correct for source and destination.

    The JDK installers typically require DLLs that do not exist in the standard windows container images. I have not taken the time to identify what DLLs are missing, but I do know that copying the entire JDK tree works. Note that you will have to manually set the path, and possibly JAVA_HOME environment variables in the container, depending on what you are planning to do. And, if you do not need the entire JDK, you should consider just copying the JRE.

    One final consideration - if you plan to use any Spring components (spring-boot, etc.), whatever JDK you use to build the spring-xxx application should be the JDK that you put in the container.

    Sunday, May 26, 2019 6:36 PM
  • Greetings, is your friend.

    Sic Parvis Magna

    Tuesday, May 28, 2019 1:28 AM
  • Actually, OpenJDK is not your friend. Doesn't work (Zulu V1.8 64 bit) with MS nanoserver/spring-boot, and Zulu seems not inclined to assist. Admittedly the problem is likely ultimately Microsoft - some obscure DLL is missing from nanoserver 1903 that is present in standard Win 10 Pro 1903.
    Saturday, August 10, 2019 8:22 PM