MacOS/GraalVM: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 93: | Line 93: | ||
|} | |} | ||
== | ==Maven & Ant== | ||
{| | {| | ||
|valign="top | |valign="top"| | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo wget -c https://archive.apache.org/dist/maven/maven-3/3.8.4/binaries/ | sudo wget -c https://archive.apache.org/dist/maven/maven-3/3.8.4/\ | ||
apache-maven-3.8.4-bin.tar.gz -P /opt/cli/ | 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\ | sudo tar -xvzf /opt/cli/apache-maven-3.8.4-bin.tar.gz\ | ||
Line 105: | Line 105: | ||
export MAVEN_HOME=/opt/cli/apache-maven-3.8.4 | export MAVEN_HOME=/opt/cli/apache-maven-3.8.4 | ||
sudo rm -rf /opt/cli/apache-maven-3.8.4-bin.tar.gz | sudo rm -rf /opt/cli/apache-maven-3.8.4-bin.tar.gz | ||
</source> | </source> | ||
|valign="top"| | |valign="top"| | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo wget -c https://archive.apache.org/dist/ant/binaries/\ | sudo wget -c https://archive.apache.org/dist/ant/binaries/\ | ||
Line 134: | Line 116: | ||
export ANT_HOME=/opt/cli/apache-ant-1.10.12 | export ANT_HOME=/opt/cli/apache-ant-1.10.12 | ||
sudo rm -rf /opt/cli/apache-ant-1.10.12-bin.tar.gz | sudo rm -rf /opt/cli/apache-ant-1.10.12-bin.tar.gz | ||
</source> | </source> | ||
Line 144: | Line 125: | ||
|valign="top"| | |valign="top"| | ||
<source lang="bash"> | <source lang="bash"> | ||
mvn -v | |||
</source> | </source> | ||
Revision as of 08:48, 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`
| |
| |
/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 & 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: | ||