top | item 45577116

(no title)

BSVogler | 4 months ago

With the difference that with docker you are shipping the runtime to your source code as well.

discuss

order

arccy|4 months ago

which is great when you realize that not all software is updated at the same time.

how managing multiple java runtime versions is supposed to work is still beyond me... it's a different tool at every company, and the instructions never seem to work

oftenwrong|4 months ago

It's less complicated than you might think. A Java Development Kit (JDK) is a filesystem directory, and includes everything necessary to run a Java program. Most of the mysterious installers and version managers are managing a collection of these JDK directories in some fixed location on disk. You can download a JDK directory (tarball), and use the `java` binary within it directly.

There is also a convention of using the `JAVA_HOME` environment variable to allow tools to locate the correct JDK directory. For example, in a unix shell, add `$JAVA_HOME/bin` to your `PATH`.

qcnguy|4 months ago

Java runtimes is just: export JAVA_HOME=/path; ./app.sh

procaryote|4 months ago

You need the runtime though