cs Verified current stable Not installed? Programming

Cs / List Installed Jvms

List Installed Jvms

Displays a list of installed Java Virtual Machines.

$
Terminal
cs java --installed

When To Use

Post-installation check to confirm the successful installation of specific JVMs.

Pro Tip

When upgrading JVMs, verify that older versions are removed to avoid classpath conflicts.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Installed JDKs:

  Version         Vendor                Path
  ----------------------------------------------------
  11.0.11        AdoptOpenJDK         /usr/lib/jvm/adoptopenjdk-11.0.11
  8u292          Oracle               /usr/lib/jvm/oracle-jdk8u292
  16.0.1         OpenJDK             /usr/lib/jvm/openjdk-16.0.1

Total 3 JVM(s) installed.

Anatomy of Output

Understanding the result

Installed JVMs: Installed JVMs List

Displays currently installed JVMs.

- openjdk:11 Installed Version

Indicates that OpenJDK version 11 is present.

- oracle:1.8.0_281 Installed Version

Confirms presence of Oracle Java.

Troubleshooting

Common pitfalls

Error: No installed JVMs found

Solution: Ensure JVM installations were successful and check the installation paths.

Error: Corrupted installation detected

Solution: Reinstall the corrupted JVM version.

Error: Version conflict detected

Solution: Resolve version inconsistencies among installed JVMs.

Command Breakdown

What each part is doing

cs
Base Command
The executable that performs this operation. Here it runs Cs before the shell applies any redirect operators.
--installed
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Run the command: `cs java --installed`

  2. Step 2

    Check the output for the list of installed JVMs.

Alternative Approaches

Comparable commands in other tools

Alternative programming tools for the same job.