How to install Oracle GraalVM Enterprise Edition 22 on Windows 10/11 - GraalVM 22

Опубликовано: 02 Май 2023
на канале: java frm
1,530
12

In this video we are going to see how to install Oracle GraalVM Enterprise Edition 22 on Windows 10.
Installation Method (for Components) will be both Online and Offline.
Prerequisites: Microsoft Visual Studio 2019/2022 (Here I am using Community Edition for compiling native image) should be already installed and Hard disk space around 2 to 3 GB.

We will be showing below basic commands in this video.

gu list ---- To check what components are already shipped with your GraalVM installation or what you have already installed.
gu available ---- To check what components are available for your GraalVM version to install
gu L install component.jar --- You can install a component from a local file, Having downloaded the appropriate JAR file, install it with this command.
gu remove ComponentId ---- The command to uninstall the component.
gu remove D ComponentId --- add the -D option, which would remove dependent components in addition to those explicitly selected.
gu info ComponentId ---- print the information about specific component (from file, URL, or catalog).
gu -show-ee-token --- print a saved download token

Next we will be
1. Compile a Java application ahead-of-time into a native executable.
2. Run Node.js program

Here I am using Oracle GraalVM Enterprise Edition 22.3.2 Windows x86 for Java 17 and can be downloaded from:
https://www.oracle.com/downloads/graa...

IMPORTANT NOTE ON TOKEN for Oracle GraalVM EE Components downloads:
You will see a message to provide your valid email address or input your download token and press ENTER. Supposedly,
this is your first installation and you have not accepted the license yet. So press ENTER.
Type your valid email address. You will immediately be sent an email to verify your email address and accept the license.
If an email address is not provided, gu will abort the installation and print an error message that no download token was provided.
Go to your email client and review the Oracle Technology Network License Agreement GraalVM Enterprise Edition Including License for Early Adopter Versions.
Accept the license. This way you confirm the license acceptance and generate a download token simultaneously.
Return to the console window and press ENTER to continue. It will ask you where to store the download token on your computer.
By default, the download token will be saved in the ~/.gu/config file in the user’s home directory. To confirm the default location, type yes.
The download and installation of the component will start.
Once the installation completes, you can continue installing other components using the same command: gu install ComponentId.
GraalVM Updater reads your ~/.gu/config and you do not have to re-accept the license.

Consider the following aspects:

A single download token is associated with a single email address.
If you use the same email address to download a GraalVM Enterprise artifact from another computer, the existing download token will become invalid.
You can transfer a download token to another computer, gu will accept it.
You will be asked to re-accept the license only if the license text changes.
The following commands can help you manage a download token:

--email address to print an e-mail address used for generating a download token
--config path to provide the path to a download token
--show-ee-token to print a saved download token

#oraclegraalvm #graalvm #graalvmenterprise #nativeimage #graalvmwindows #installgraalvm #graalvm22


Смотрите видео How to install Oracle GraalVM Enterprise Edition 22 on Windows 10/11 - GraalVM 22 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь java frm 02 Май 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,530 раз и оно понравилось 12 людям.