如何在最新的 Apache Ubuntu Linux 上安裝 NetBeans IDE


Apache NetBeans 是一個免費和開源的 IDE(Java、PHP、HTML5 和 JavaScript 的集成開發環境),還可以使用 C、C++ 和 Groovy 等其他語言。您還可以使用插件來擴展其功能。 Apache NetBeans 可用於 Windows、macOS、Linux 和 Solaris,並根據 Apache License 2.0 獲得許可。

在 Apache Ubuntu 上安裝 NetBeans

在您的系統上安裝並運行最新版本的 Apache NetBeans。 需要 JDK 8 或 JDK 11 或最新的 JDK 16(當前 JDK 版本)。您可以通過運行以下命令來檢查已安裝的 Java 版本:

java -version

如果您沒有 java,請使用以下命令安裝它:

sudo apt update
sudo apt install default-jdk

如果需要,請在安裝期間輸入 Ubuntu 用戶的密碼。

下載 Apache Netbeans

從上面的下載鏈接下載最新版本的 .sh 文件格式的 Apache NetBeans 安裝程序腳本,然後下載 . 下載 文件夾。

例如:Apache-NetBeans-12.4-bin-linux-x64.sh (SHA-512, PGP ASC) 點擊鏈接即可。

NetBeans 安裝程序鏈接

其中“Apache-NetBeans-12.4-bin-linux-x64.sh”是當前版本的文件名。根據您使用的版本,它看起來會有所不同。

將打開一個新頁面。現在,右鍵單擊 NetBeans 安裝程序腳本並選擇將鏈接另存為選項。 下載 文件夾。下載的文件大小約為 450 MB。

如何在 Ubuntu 上安裝 Thonny Python IDE

下載 NetBeans 安裝程序

使用終端轉到下載文件夾

cd Downloads

然後運行此命令以允許 Apache 運行 NetBeans 安裝程序。

sudo chmod +x Apache-NetBeans-12.4-bin-linux-x64.sh

這裡”Apache-NetBeans-12.4-bin-linux-x64.sh”是下載的安裝程序名稱。請根據下載的安裝程序名稱更改上述命令。然後執行以下命令。

sudo ./Apache-NetBeans-12.4-bin-linux-x64.sh

GUI Apache NetBeans 安裝程序窗口將打開。[次へ]單擊開始並完成安裝。安裝完成需要一些時間。

Apache NetBeans 安裝程序 GUI

完成 Apache NetBeans 安裝程序

Apache NetBeans 項目

通過 Snap 安裝 Apache NetBeans。

您還可以通過 snap 存儲中的 snap 安裝 Apache NetBeans。打開終端 (ctrl+alt+t) 並運行以下 Apache NetBeans snap install 命令。

sudo snap install netbeans --classic

通過 Flatpak 安裝 Apache NetBeans。

安裝 flatpak 和 flathub 並重新啟動系統。然後運行以下 Apache NetBeans flatpak 安裝命令:

flatpak install flathub org.apache.netbeans

你可以通過

flatpak run org.apache.netbeans

如果您願意,也可以從下面的下載鏈接安裝插件。
Apache NetBeans 插件

而已。