Java
Solus includes multiple LTS versions of Java in the repositories. You can install more than one version in your system at once.
Tip
|
If you need to install different versions or Java, use alternative installation methods such as SDKMAN!. |
All Java packages in the Solus repositories include the Java Runtime Environment (JRE) and the Java Development Kit (JDK).
The following table lists the versions of Java available in the Solus repositories.
Version | Package name | Installation directory | Included components |
---|---|---|---|
Java 8 |
|
|
JRE, JDK |
Java 11 |
|
|
JRE, JDK, OpenJFX |
Java 17 |
|
|
JRE, JDK, OpenJFX |
Running Java Applications
Important
|
Solus does not add Java to the |
There are multiple ways to execute Java applications in Solus:
-
Create a .desktop file, then add
env JAVA_HOME=/path/to/jdk
to Exec. -
Create a script that sets
JAVA_HOME
before running the application. -
Symlink the java executable from
/path/to/jdk/bin
to/usr/bin
. -
Add
/path/to/jdk/bin
to your PATH environment variable.