Skip to content

Commit

Permalink
java: Add note on openjdk-8 (#405)
Browse files Browse the repository at this point in the history
* java: Add note on openjdk-8

Signed-off-by: Reilly Brogan <[email protected]>

* Update java.md

- Add closing tag for admonition
- Run through formatter
- Emphasize package name

---------

Signed-off-by: Reilly Brogan <[email protected]>
Co-authored-by: David Harder <[email protected]>
  • Loading branch information
ReillyBrogan and davidjharder authored Oct 11, 2023
1 parent 2caae3e commit 6ed2938
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docs/user/software/development/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ Solus includes multiple LTS versions of Java in the repositories. You can instal

:::tip

If you need to install different versions or Java, use alternative installation methods such as [_SDKMAN!_](https://sdkman.io/).
If you need to install different versions of Java, use alternative installation methods such as [_SDKMAN!_](https://sdkman.io/).

:::

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| `openjdk-8` |`/usr/lib64/openjdk-8`|JRE, JDK|
|Java 11| `openjdk-11` |`/usr/lib64/openjdk-11`|JRE, JDK, OpenJFX|
|Java 17| `openjdk-17` |`/usr/lib64/openjdk-17`|JRE, JDK, OpenJFX|

| Version | Package name | Installation directory | Included components | Notes |
| ------- | ------------ | ----------------------- | ------------------- | --------------------- |
| Java 8 | `openjdk-8` | `/usr/lib64/openjdk-8` | JRE, JDK | See _openjdk-8_ below |
| Java 11 | `openjdk-11` | `/usr/lib64/openjdk-11` | JRE, JDK, OpenJFX | |
| Java 17 | `openjdk-17` | `/usr/lib64/openjdk-17` | JRE, JDK | |

## Running Java Applications

Expand All @@ -38,3 +37,11 @@ There are multiple ways to execute Java applications in Solus:
- 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.

## openjdk-8

:::danger Important

openjdk-8 is scheduled for removal in the near future. It is not recommended that you use it today.

:::

0 comments on commit 6ed2938

Please sign in to comment.