
Instead, it is a symbolic link to a name in the alternatives directory, which in turn is a symbolic link to the actual file referenced.’ The alternatives system and the system administrator together determine which actual file is referenced by this generic name. The generic name is not a direct symbolic link to the selected alternative. AlternativesĪccording to, alternatives ‘make it possible for several programs fulfilling the same or similar functions to be installed on a single system at the same time. A generic name in the filesystem is shared by all files providing interchangeable functionality. In a many software development environments, you may need different versions of Java, depending on different client project’s level of technology. By selecting an alternative version of Java, we control which java.exe binary executable file the system calls when the ‘java’ command is executed. These three versions are referred to as ‘alternatives’, thus the ‘alternatives’ command. There are two other Java versions also installed but not active, an Oracle 1.7.0_17 JRE version and an older 1.7.0_04 JDK version. That version is located in the ‘/usr/lib/jvm/jdk1.7.0_17’ subdirectory. v|-verbose Verbose output.įILES /usr/lib/jvm/.*.jinfo A text file describing a jre/sdk installation.In the above example, the 1.7.0_17 JDK version of Java is configured and active. plugin Limit the actions to alternatives providing browser plugins. jre-headless Limit the actions to alternatives belong to the headless part of a runtime environment. jre Limit the actions to alternatives belong to a runtime environment, s|-set Set all alternatives of the registered jre/sdk installation to the program

a|-auto Switch all alternatives of registered jre/sdk installations to automatic mode.

OPTIONS -l|-list List all installed packages (or just ) providing information to setĪ bunch of java alternatives. Information of it's alternatives in /usr/lib/jvm/.jinfo. Or development kit for the Java language. Update-java-alternatives - update alternatives for jre/sdk installations SYNOPSIS update-java-alternatives ĭESCRIPTIONupdate-java-alternatives updates all alternatives belonging to one runtime Command to display update-java-alternatives manual in Linux: $ man 8 update-java-alternatives NAME
