![]() ![]() ![]() The full names from the index can be cumbersome to For example, cs java -available -jvm-index Short JVM names It's also possible to specify arbitrary URL containing JVM index. Possible values areįetches index from io.get-coursier:jvm-index Maven repository The JVM index source can be changed by using the -jvm-index option. To list the JVM that can be installed from it, run $ cs java -available This index is regularly updated, and lists a large variety of JVMs The AdoptOpenJDK 13.0.2 JVM is automatically downloaded and extractedĬs java -available lists the JVMs available in the index: $ cs java -available | grep adoptĬs java -installed lists the ones currently installed on your system: $ cs java -installedīy default, the java and java-home commands rely on OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing) OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.2+8) One can run the java binary from AdoptOpenJDK 13.0.2 via $ cs java -jvm adopt:13.0-2 -version This, the default JVM is the latest AdoptOpenJDK 8 from theīoth java and java-home commands accept a JVM name via -jvm. If no JVM is installed on your system, the default one is automaticallyĮxtracted in the JVM cache, and used. Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home Likewise, the java-home command prints its base directory, which can look like $ cs java-home Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Simply calls it, just as if you called it yourself: $ java -version If a JVM is already installed on your system, the java command ![]() The java and java-home commands fetch and install JVMs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |