Rocky Linux javaの教育用開発環境「BlueJ」をインストールする

Rocky Linux javaの教育用開発環境「BlueJ」をインストールする

Rocky Linuxにjavaの教育用開発環境「BlueJ」をインストールする手順を記述してます。

環境

  • OS Rocky Linux 8.3

flatpakダウンロード

パッケージ管理「flatpak」をインストールします。
※自分の環境では、既にインストールされてました。

sudo dnf -y install flatpak

Flathubのレポジトリの追加を行います。

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

BlueJインストール

flatpakを使用して、BlueJをインストールします。

sudo flatpak -y install https://flathub.org/repo/appstream/org.bluej.BlueJ.flatpakref

<出力結果>
org.bluej.BlueJ permissions:
    ipc      network     pulseaudio     wayland     x11     dri     file access [1]     dbus access [2]

    [1] host, xdg-run/dconf, ~/.config/dconf:ro
    [2] ca.desrt.dconf


        ID                      Branch         Op         Remote          Download
 1. [✓] org.bluej.BlueJ         stable         i          flathub         116.6 MB / 118.0 MB

Installing… ████████████████████ 100%  3.6 MB/s  00:00
Note that '/var/lib/flatpak/exports/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:

- /root/.local/share
        ID                      Branch         Op         Remote          Download
 1. [✓] org.bluej.BlueJ         stable         i          flathub         116.6 MB / 118.0 MB

Installation complete.

BlueJ起動

BlueJがインストールされていることが確認できます。

アイコンをクリックすると「BlueJ」が起動します。

BlueJプロジェクト作成

プロジェクトの作成は「プロジェクト > 新規作成」をクリックして、

任意のプロジェクト名を入力して、プロジェクトを作成します。

新規クラスをクリックすれば、クラスを作成することが可能です。

クラスが作成できたので、クラスをダブルクリックして開いてみます。

クラスを開くと、それぞれの説明がコメントされていることが確認できます。