Installieren Sie das neueste Java

Installieren Sie das neueste Java

Ich verwende Fedora 39 KDE. Ich habe die JDownloader2Setup_unix_nojre.shDatei " " heruntergeladen vonhttps://jdownloader.org/jdownloader2.

Das Installationsprogramm funktioniert nicht.

./JDownloader2Setup_unix_nojre.sh 
Starting Installer ...
Could not display the GUI. This application needs access to an X Server.
*******************************************************************
You can also run this application in unattended mode without
access to an X server by passing the argument -q
*******************************************************************

„Der Verzeichnisname darf keine Leerzeichen enthalten.“ Fehler:

./JDownloader2Setup_unix_nojre.sh -q
Starting Installer ...
The installation directory has been set to /home/user/jd2/JDownloader 2.
The directory name must not contain spaces.
[1/1|Priority: 0]ShutdownController: start item->ShutdownEvent: Save JSonStorages
[1/1|Priority: 0]ShutdownController: item ended after->2
[Done:1/1]
Shutdown Hooks Finished

Antwort1

Ich konnte das unbeaufsichtigte Installationsprogramm zum Laufen bringen (aber nicht den GUI-Modus).

Installieren Sie das neueste Java

Nach der Installation von JDownloader trat bei OpenJDK 17 der Fehler „java.lang.UnsatisfiedLinkError: Bibliothek kann nicht geladen werden: /usr/lib/jvm/java-17-openjdk-17.0.9.0.9-3.fc39.x86_64/lib/libawt_xawt.so“ auf, daher musste ich auf das neueste OpenJDK 22 umsteigen.

# Install latest OpenJDK.
sudo dnf install java-latest-openjdk-devel.x86_64 java-latest-openjdk.x86_64

# Switch to latest OpenJDK.
sudo alternatives --config java

# Confirm Java version.
java --version

Installation im unbeaufsichtigten Modus

Um den unbeaufsichtigten Modus zu verwenden, müssen Sie eine " response.varfile"-Datei erstellen und bereitstellen.

" response.varfile" Datei:

sys.fileAssociation.launchers$StringArray="26","26","26","26","26"
sys.languageId=en
customTab$Boolean=false
customBasic$Boolean=true
sys.installationDir=/opt/JDownloader
customSearch$Boolean=false
customHomepage$Boolean=false
executeLauncherAction$Boolean=false
sys.fileAssociation.extensions$StringArray="dlc","jdc","ccf","rsdf","metalink"
installFM=skip

Stellen Sie " sys.installationDir" ein. Ich habe es beispielsweise auf " /opt/JDownloader" installiert.

# Create JDownloader installation directory.
sudo mkdir /opt/JDownloader
sudo chmod 777 /opt/JDownloader

./JDownloader2Setup_unix_nojre.sh -q -varfile "response.varfile"

Erfolg:

Starting Installer ...
The installation directory has been set to /opt/JDownloader.
Import proxyList
null
StepID: CREATE_PACKAGE
StepID: DOWNLOAD
StepID: EXTRACTION
StepID: PREPARE_INSTALL
StepID: PREPARE_INSTALL
StepID: INSTALLING
StepID: INSTALLING
StepID: CLIENT_OPTIONS
StepID: CLEANUP
StepID: CREATE_PACKAGE
StepID: DOWNLOAD
StepID: EXTRACTION
StepID: PREPARE_INSTALL
StepID: PREPARE_INSTALL
StepID: INSTALLING
StepID: INSTALLING
StepID: CLIENT_OPTIONS
StepID: CLEANUP
CustomProxyListPath: /opt/JDownloader/cfg/org.jdownloader.settings.InternetConnectionSettings.customproxylist.json
[1/3|Priority: 0]ShutdownController: start item->ShutdownEvent: SaveAllStorageHandler
[1/3|Priority: 0]ShutdownController: item ended after->0
[Done:1/3]
[2/3|Priority: 0]ShutdownController: start item->ShutdownEvent: ProcessDelayedWrites num=0
[2/3|Priority: 0]ShutdownController: item ended after->0
[Done:2/3]
[3/3|Priority: 0]ShutdownController: start item->ShutdownEvent: Save JSonStorages
[3/3|Priority: 0]ShutdownController: item ended after->1
[Done:3/3]
Shutdown Hooks Finished

verwandte Informationen