MacOS/GraalVM: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
export GRAALVM_HOME=`/usr/libexec/java_home -v22.0.0.2` | export GRAALVM_HOME=`/usr/libexec/java_home -v22.0.0.2` | ||
export JAVA_HOME=`/usr/libexec/java_home -v22.0.0.2` | export JAVA_HOME=`/usr/libexec/java_home -v22.0.0.2` | ||
export PATH="$GRAALVM_HOME/bin:$PATH" | |||
</source> | </source> | ||
Line 20: | Line 21: | ||
|valign="top"| | |valign="top"| | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo gu install native-image | |||
native-image --version | |||
</source> | </source> | ||
Line 26: | Line 28: | ||
<source lang="bash"> | <source lang="bash"> | ||
java -version | java -version | ||
gu --version | |||
</source> | </source> | ||
Revision as of 09:14, 11 March 2022
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`
export PATH="$GRAALVM_HOME/bin:$PATH"
| |
| |
sudo gu install native-image
native-image --version
|
java -version
gu --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 & Ant
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
|
sudo wget -c https://archive.apache.org/dist/ant/binaries/\
apache-ant-1.10.12-bin.tar.gz -P /opt/cli/
sudo tar -xvzf /opt/cli/apache-ant-1.10.12-bin.tar.gz\
-C /opt/cli/
export ANT_HOME=/opt/cli/apache-ant-1.10.12
sudo rm -rf /opt/cli/apache-ant-1.10.12-bin.tar.gz
|
| |
mvn -v
|
ant -version
|
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: | ||