5 ms·
curl -OL <jdk url> tar -xzvf <jdk archive> <set JAVA_HOME env var to point to dir> <add to PATH $JAVA_HOME/bin> So complicated.
by sto_hristo 6y ago
curl -OL <jdk url>
tar -xzvf <jdk archive>
<set JAVA_HOME env var to point to dir>
<add to PATH $JAVA_HOME/bin>
So complicated.
- hurril 6y agoAll your projects are belong to that one version of the JDK. Great success.
- sto_hristo 6y agoNo success is greater than 100 different projects needing 100 different JDKs on the same machine. But somehow i don't have a problem building an android app in its own java, while the backing service is done in a completely different jdk. It's not ideal as i would want the latest language features in the android side, but that is an android problem.
- hurril 6y agoMy point is that you do not simply update PATH and JAVA_HOME these days. That was Java 1.02 or somesuch roughly a hundred years ago.