jenv-tool

Jenv Setup
Jenv Setup

Jenv tool is used to install, manage and switch between different Java versions easily.
Automates the manual editing of changing paths and system properties.
Homepage: Jenv



     1. Jenv project homepage
     Homepage: https://github.com/jenv/jenv
    
     2. Installation via scoop: easy way to install on Windows. For Other Operating systems Check here
     cmd> scoop bucket add extras
     cmd> scoop install extras/jenv
    
     Prerequisite: Scoop should be installed and configured. See Config Scoop for more info.
    
     3. Check the scoop buckets
     cmd> scoop list
     jenv information has to be shown.
    
     4. Auto scan for the existing JDKs/JREs
     cmd> jenv autoscan
     Finds and adds to the list to use it later. Name the versions
    
     5. List all added JDKs
     cmd> jenv list
    
     6. Manually download and add the custom Java version to scoop
     Search for the required java version on scoop.
     cmd> scoop bucket add java
     cmd> scoop install java/openjdk9
    
     cmd> scoop list
     Open JDK9 application will be shown.
    
     7. Add jdk9 to jenv
     cmd>jenv add jdk9
     cmdlet Invoke-Add at command pipeline position 1
     Supply values for the following parameters:
     path: C:\Users\mahes\scooppps\openjdk9\9.0.4-12
     Successfully added the new JEnv: jdk9
    
     8. Check jenv list to see the latest added JDK
     cmd>jenv list
     name path
     ---- ----
     jdk9 C:\Users\mahes\scoop\apps\openjdk9\9.0.4-12
    
     9. Change java version for one time/per shell(temporary). It will override the local & global versions.
     cmd>jenv use jdk9
     cmd> java -version
     javac 9.0.4
     cmd> javac -version
     openjdk version "9.0.4"
     OpenJDK Runtime Environment (build 9.0.4+11)
     OpenJDK 64-Bit Server VM (build 9.0.4+11, mixed mode)
    
     10. Levels of Java versions that can be set through Jenv.
     a. shell (temporary/onetime/limited to shell lifetime) - High Priority
     b. local (second/medium level) - Medium Priority
     c. global (last level) - Low Priority
    
     11. To set/unset different global/local/shell versions
     a. To set
     cmd> jenv <global/local/shell> <version_name>
     b. To unset
     cmd> jenv <global/local/shell> --unset

Compiled on THURSDAY, 17-OCTOBER-2024, 11:06:48 AM IST

Comments

Popular posts from this blog

hadoop-installation-ubuntu

hive-installation-in-ubuntu