JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 27.08.2018, 22:27
woswasi woswasi is offline
Linkgrabbing Monster
 
Join Date: Mar 2012
Posts: 89
Default 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
Reply With Quote
  #2  
Old 28.08.2018, 12:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

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
Reply With Quote
  #3  
Old 28.08.2018, 12:48
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

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
Reply With Quote
  #4  
Old 29.08.2018, 02:13
woswasi woswasi is offline
Linkgrabbing Monster
 
Join Date: Mar 2012
Posts: 89
Default

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.
Reply With Quote
  #5  
Old 29.08.2018, 10:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Thanks, waiting for new feedback then. Good luck!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 01.09.2018, 15:07
woswasi woswasi is offline
Linkgrabbing Monster
 
Join Date: Mar 2012
Posts: 89
Default

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.
Reply With Quote
  #7  
Old 04.09.2018, 12:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I guess sooner or later, java will support wayland the more distributions will switch to it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 25.09.2018, 01:57
woswasi woswasi is offline
Linkgrabbing Monster
 
Join Date: Mar 2012
Posts: 89
Default

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.
Reply With Quote
  #9  
Old 25.09.2018, 10:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 18:52.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.