JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 18.06.2018, 16:49
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default Installation problems

Hi,

Tried to install the Linux version, but it fails with java.lang.NoClassDefFoundError: java.awt.Container

Then tried the .zip version, JDownloader installs but when it's running the window is completely grey, cannot see any button or other control.

Any tip?
Reply With Quote
  #2  
Old 18.06.2018, 16:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

Looks like your java is incomplete.
I guess you've installed gcj? and not full JRE?
what does "java -version" show?
Please use Java 1.8
Java >=1.9 are experimental support. They work but can cause issues
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 19.06.2018, 13:48
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default

Hi,


jdk and jre are installed.
openjdk-8u182b00_1 OpenJDK Java Development Kit
openjdk-jre-8u182b00_1 OpenJDK Java Runtime Environment

# java -version
openjdk version "1.8.0_182"
OpenJDK Runtime Environment (build 1.8.0_182-b00)
OpenJDK 64-Bit Server VM (build 25.182-b00, mixed mode)
Reply With Quote
  #4  
Old 19.06.2018, 13:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

Can you please show the complete stacktrace/log.

This is a java class and error means that it is missing
java.lang.NoClassDefFoundError: java.awt.Container
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 19.06.2018, 13:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

What window manager do you use? Please know that OpenJDK has more issues with some window managers than the Oracle one. Also a XServer is required. Pure Wayland isn't yet supported by java
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 19.06.2018, 14:23
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default

Hi Jiaz,


Thank you for your support!

I downloaded the JDownloader.jar and ran it with `java -jar JDownloader.jar`. Never programmed in Java, don't know if have to do it differently.

Presently, I'm using the dwm window manager with X11.

Here's the complete stacktrace/log: **External links are only visible to Supporters****External links are only visible to Supporters**
Reply With Quote
  #7  
Old 19.06.2018, 14:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

dwm isn't supported out of the box by java
you've got to give little *help*
wiki.gentoo.org/wiki/Dwm#Fix_Java_application_misbehaving
with that modifications in place, it should work just fine then
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 19.06.2018, 14:44
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default

The two settings were already set because of other Java programs:

$wmname
LG3D

$ echo $AWT_TOOLKIT
MToolkit

At line 244 of my log, there's a severe issue, some Code.jar missing, for examples. Can't the problem be related to other issue?
Reply With Quote
  #9  
Old 19.06.2018, 15:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

Log contains no error. That's a normal log when JDownloader doesn't find a working installation and updating itself to latest available version.
Can you create new log?
start JDownloader with
java -jar JDownloader.jar -norestart -console
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 19.06.2018, 15:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

I can also offer help via Teamviewer if you like, just contact me via support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 19.06.2018, 15:10
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default

The new log from `java -jar JDownloader.jar -norestart -console`

**External links are only visible to Supporters****External links are only visible to Supporters**
Reply With Quote
  #12  
Old 19.06.2018, 15:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

Log is clean, no errors?!
So what exactly is the problem?
Log contains start and stop of JDownloader
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 19.06.2018, 16:01
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default

The problem is the grey window as in the attachment of the whole desktop.
Attached Images
File Type: jpg 20180619_140049_jdownloader_grey_window.jpg (52.2 KB, 1 views)
Reply With Quote
  #14  
Old 19.06.2018, 16:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

I would say incompatibility between dwm and java.
I would try OracleJVM instead of OpenJDK because it has better compatibility for window managers/servers.

Also see
porizi.wordpress.com/2014/09/26/running-intellij-idea-under-dwm-with-java-7-8/
wiki.haskell.org/Xmonad/Frequently_asked_questions#Problems_with_Java_applications.2C_Applet_java_console

export _JAVA_AWT_WM_NONREPARENTING=1
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 19.06.2018, 19:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

please try this one
export _JAVA_AWT_WM_NONREPARENTING=1
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 20.06.2018, 14:18
lib lib is offline
Baby Loader
 
Join Date: Jun 2018
Posts: 7
Default

Quote:
Originally Posted by Jiaz View Post
please try this one
export _JAVA_AWT_WM_NONREPARENTING=1
Hi Jiaz,


You can add this one to the FAQ!
Got it to work. Thank you very much for your support, all the best to you!
Reply With Quote
  #17  
Old 20.06.2018, 14:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 58,893
Default

Thanks for the confirmation! Will create a wiki entry for it!
Glad that you finally got it working
__________________
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 08:46.
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 - 2018, Jelsoft Enterprises Ltd.