this post was submitted on 19 Apr 2025
34 points (90.5% liked)

Linux

53416 readers
783 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

After hours of trying understand how to set up VSCodium with Java extension, i found a solution so here it is, idiotproof (i hope) tutorial for future me and others like me ;)

Flatpak VSCodium with java extension

Via Terminal

  1. Install VSCodium:
flatpak install com.vscodium.codium
  1. Install "Extension Pack for Java" extension for VSCodium:
flatpak run com.vscodium.codium --install-extension vscjava.vscode-java-pack
  1. Install flatpak openjdk extension. (In this case openjdk21):
flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21
  1. Add two new environment to use flatpak openjdk extension in VSCodium:
flatpak override --user --env=JAVA_HOME=/usr/lib/sdk/openjdk21 com.vscodium.codium && flatpak override --user --env=PATH=/usr/lib/sdk/openjdk21/bin:/app/bin:/usr/bin com.vscodium.codium
  1. Restart VSCodium:
flatpak kill com.vscodium.codium && flatpak run com.vscodium.codium
  1. Done.

Via Graphical interface

  1. Install "VSCodium":
    1. Go to app store and search for "VSCodium".
    2. Make sure it's flatpak versionn.
    3. Click Install button and after downloading open the app.
  2. Install "Extension Pack for Java" extension in VSCodium:
    1. Go to Extensions pannel (on the left).
    2. Search for "Extension Pack for Java".
    3. Click Install button.
    4. Close "VSCodium".
  3. Install flatpak openjdk extension. (In this case openjdk21):
    1. Search for "Terminal" app and open it.
    2. Paste command below:
flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21
3. Click `Enter`.
4. Close "Terminal".
  1. Install "Flatseal":
    1. Go to app store and search for "Flatseal".
    2. Click Install button and after downloading open the app.
  2. Allow VSCodium to use flatpak openjdk extension:
    1. Search for "VSCodium" in Flatseal.
    2. Go to Environment.
    3. Click + button (to the right from Variables) and paste:
PATH=/usr/lib/sdk/openjdk21/bin:/app/bin:/usr/bin
4. Click `+` once again and paste:
JAVA_HOME=/usr/lib/sdk/openjdk21
  1. Restart VSCodium

PS

There is formatting issue with markdown but it's on lemmy side i think

you are viewing a single comment's thread
view the rest of the comments
[–] OmegaLemmy@discuss.online 1 points 2 days ago

probably the actual sane solution btw