MacOS/GraalVM
Install
sudo wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/\
graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz -P /Library/Java/JavaVirtualMachines/
sudo tar -xvzf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz\
-C /Library/Java/JavaVirtualMachines/
sudo rm -rf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz
export GRAALVM_HOME=`/usr/libexec/java_home -v22.0.0.2`
export JAVA_HOME=`/usr/libexec/java_home -v22.0.0.2`
| |
| |
/usr/libexec/java_home -v22.0.0.2
|
java -version
|
Docker
Java 17 » GraalVM ??: | |
docker pull ghcr.io/graalvm/jdk:ol8-java17 docker pull ghcr.io/graalvm/nodejs:ol8-java17 docker pull ghcr.io/graalvm/graalvm-ce:ol8-java17 docker pull ghcr.io/graalvm/native-image:ol8-java17 |
docker run -it --rm ghcr.io/graalvm/jdk:ol8-java17 bash docker run -it --rm ghcr.io/graalvm/nodejs:ol8-java17 bash docker run -it --rm ghcr.io/graalvm/graalvm-ce:ol8-java17 bash docker run -it --rm ghcr.io/graalvm/native-image:ol8-java17 --help |
Java 17 » GraalVM 22: | |
docker pull ghcr.io/graalvm/jdk:ol8-java17-22 docker pull ghcr.io/graalvm/nodejs:ol8-java17-22 docker pull ghcr.io/graalvm/graalvm-ce:ol8-java17-22 docker pull ghcr.io/graalvm/native-image:ol8-java17-22 |
docker run -it --rm ghcr.io/graalvm/jdk:ol8-java17-22 bash docker run -it --rm ghcr.io/graalvm/nodejs:ol8-java17-22 bash docker run -it --rm ghcr.io/graalvm/graalvm-ce:ol8-java17-22 bash docker run -it --rm ghcr.io/graalvm/native-image:ol8-java17-22 --help |
Java 17 » GraalVM ?? » Oracle Linux 8: | |
ls -lah /opt/graalvm*/bin/|grep java alternatives --config native-image alternatives --config jconsole alternatives --config jshell alternatives --config javac alternatives --config java alternatives --config gu alternatives --config js |
microdnf install httpd-tools microdnf install nginx microdnf install wget microdnf install curl javac -version java -version gu --version js -version |
Maven
sudo wget -c https://archive.apache.org/dist/maven/maven-3/3.8.4/binaries/\
apache-maven-3.8.4-bin.tar.gz -P /opt/cli/
sudo tar -xvzf /opt/cli/apache-maven-3.8.4-bin.tar.gz\
-C /opt/cli/
export MAVEN_HOME=/opt/cli/apache-maven-3.8.4
sudo rm -rf /opt/cli/apache-maven-3.8.4-bin.tar.gz
| |
| |
java -version
|
mvn -v
|
Knowledge
/usr/libexec/java_home -v1.7.0_80 |
/usr/libexec/java_home -v1.8.0_321 |
/usr/libexec/java_home -v22.0.0.2 |
| ||
ssh-keygen -f "/home/chorke/.ssh/known_hosts" -R "10.19.83.111" ssh-keygen -f ~/.ssh/known_hosts -R 10.19.83.111 |
/usr/libexec/java_home -v1.8 /usr/libexec/java_home -v22 | |
| ||
References
| ||
Getting Started: | ||