#1
|
|||
|
|||
Fedora 28: shell Installation fails
trying to install JD2 on Fedora 28 with cinnamon desktop (via terminal / shell)
downloaded JD2Setup.sh from your site via mega.nz, when running it the following error message appears: JD2Setup_x86.sh: line 225: bin/unpack200: No such file or directory Error unpacking jar files. The architecture or bitness (32/64) of the bundled JVM might not match your machine. line 225: unpack_file() { if [ -f "$1" ]; then jar_file=`echo "$1" | awk '{ print substr($0,1,length-5) }'` bin/unpack200 -r "$1" "$jar_file" guess the last line should read: $app_java_home/bin/unpack200 after adding this with nano (also tried vi), I get the following: $ sh JD2Setup_x86.sh gzip: sfx_archive.tar.gz: not in gzip format I am sorry, but the installer file seems to be corrupted. If you downloaded that file please try it again. If you transfer that file with ftp please make sure that you are using binary mode. copied JD2 from an existing windows installation, ran java -jar JDownloader.jar after some downloading, updating and lots of console messages, I finally got: oader.update.SelfUpdateClient(validateSelfTestFile) ] -> SelfTest Results: OK 19|org.jdownloader.update.UpdateManager.log 27/08/18 21:16:37 - INFO [ org.jdownloader.update.SelfUpdateClient(validateSelfTestFile) ] -> OK 19|org.jdownloader.update.UpdateManager.log 27/08/18 21:16:37 - INFO [ org.jdownloader.update.SelfUpdateClient(validateSelfTestFile) ] -> Self Update successful |---------------------------Headless Information------------------------------- | Restart Required | JDownloader Updated and restarted itself. | The process restarted itself and runs now in the background: 3428@sheila64 | If you do not want JD to restart itself, use the -norestart switch. |------------------------------------------------------------------------------ for some reason it assumes to be a headless server, but it is supposed to run with GUI on the desktop. any help appreciated. thnx |
#2
|
||||
|
||||
Java doesn't yet (fully/at all) support Wayland. So you've got to install XServer/X11/Xwayland.
What java version are you using? java -version Might require a different java version. I've found some bugtracker that wayland support is in progress but I can't test it myself (still on XServer). stackoverflow.com/questions/39197208/java-gui-support-on-wayland github.com/swaywm/sway/wiki/Running-programs-natively-under-wayland
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
About shell installer. Are you using 32bit or 64bit?
JD2Setup_x86.sh -> 32bit version and might be that your System/Fedora no longer ships the required libraries to run 32bit stuff on 64bit os.
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
thanks, regarding wayland - that's a plausible explanation. I'll dig into it and report requested information aus soon as I'm back home again.
|
#5
|
||||
|
||||
Thanks, waiting for new feedback then. Good luck!
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
Fedora 28, Cinnamon Desktopn
$ java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) and yes, this confirms it: $ java -jar GpsMaster_0.63.20.jar java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) at java.awt.Window.<init>(Window.java:536) at java.awt.Frame.<init>(Frame.java:420) I'll follow different paths: follow up on the posts mentioned above, add X11 to wayland and see how Centos7 feels desktop-wise. tnx tnx Last edited by woswasi; 01.09.2018 at 15:09. |
#7
|
||||
|
||||
I guess sooner or later, java will support wayland the more distributions will switch to it
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
finally, I found the solution:
in fedora 26 / 28, "java-1.8.0-openjdk-headless-1.8.0.181.b15-0.fc28.x86_64" is installed by default. the package "java-1.8.0-openjdk-1.8.0.181.b15-0.fc28.x86_64" needs to be installed in addition, then JDownloader runs. so, it was a Java installation problem, and not one of wayland. |
#9
|
||||
|
||||
Thanks for the feedback. Sorry, my fault. Yes, the wrong jvm, eg headless, can also cause this but I didn't think about it, sorry for this. Glad you got it working And thanks for sharing your findings!
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|