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)
Oh, thanks! I was looking for it on YouTrack (searching for "coretto") but didn't find it somehow.
j
joffrey
09/20/2024, 12:36 PM
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).
joffrey
09/20/2024, 12:36 PM
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.