Hey, I'm trying out Amper (standalone), it's so co...
# amper
b
Hey, I'm trying out Amper (standalone), it's so cool and works well, great job! I have a complaint though: it downloaded JDK Coretto from Amazon 🤨 I already have a JDK I want, why did it do it?
Copy code
$ java -version
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment Homebrew (build 17.0.12+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.12+0, mixed mode, sharing)
youtrack new 1
a
Hello Bartek, there is a ticket in YouTrack regarding the issue: https://youtrack.jetbrains.com/issue/AMPER-808/corretto-jdk-download-unnecessarily Thank you for reporting!
b
Oh, thanks! I was looking for it on YouTrack (searching for "coretto") but didn't find it somehow.
j
I somehow missed this thread, but you can set the env var
AMPER_JAVA_HOME
to tell Amper to use a specific JDK or JRE instead of downloading one on the first execution. That is mostly useful if you want to skip the first download (maybe on CI), or if you really want a custom JDK/JRE to run Amper (in which case it would be great to share your use case).
However, as Anton said, the JDK that runs Amper itself should be irrelevant to the users. It should also be irrelevant that Amper is a JVM application at all. In the future we could bundle Amper as a standlone native executable, or use a stripped down jlink-ed JRE (not even JDK) with just the classes we need.
kodee excited 1