JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 04.11.2017, 14:40
robertus robertus is offline
Mega Loader
 
Join Date: Dec 2010
Posts: 62
Default Impossible launch JD2 on Rpi3

Hi,

i'm so sorry about this post, but i don't know why, i can't launch JD2 on my rpi3 with last raspbian (2017-09-07-raspbian-stretch.img)

This is output error.

Before i had the same raspbian, and i can launched JD2 without any issue.

Now i formatted and reinstall raspbian, sudo apt-get update and upgrade, but no way to launch JD2.

I hope that someone can help me , and sorry already for this thread.

I see on web that someone can fix it with:
Code:
unset DISPLAY
But for me doesn't works, because with this command i can launch JD2 but i can't have the gui, only web interface ( myjdownloader ), but i need also the gui.

Of course i try to launch JD2 from my laptop with rdp in remote, not with putty in ssh. Like vnc, you know.


Code:
java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
Code:
sudo java -jar /home/pi/Programmi/JDownloader2/JDownloader.jar
JarHandlerWorkaroundOracle:setURLStreamHandlerFactory
JarHandlerWorkaroundOracle:replaceLauncherFactory
JarHandlerWorkaroundOracle:replaceURLClassPath
JarHandlerWorkaroundOracle:replacejarHandler
JarHandlerWorkaroundOracle:replaceLoaders:1
JarHandlerWorkaroundOracle:replaceLoader:0:handler
JarHandlerWorkaroundOracle:replaceLoader:0:handler:jar:file:/home/pi/Programmi/JDownloader2/JDownloader.jar!/
No protocol specified
java.awt.AWTError: Can't connect to X11 window server using ':10.0' as the value of the DISPLAY variable.
	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
	at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
	at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.Toolkit$2.run(Toolkit.java:860)
	at java.awt.Toolkit$2.run(Toolkit.java:855)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
	at org.appwork.utils.os.CrossSystem.<clinit>(CrossSystem.java:293)
	at org.appwork.utils.logging.LogFormatter.<init>(LogFormatter.java:58)
	at org.appwork.utils.logging2.LogConsoleHandler$1.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogConsoleHandler.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogSourceProvider.<init>(LogSourceProvider.java:131)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<init>(LoggerFactory.java:148)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.initialize(LoggerFactory.java:75)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<clinit>(LoggerFactory.java:57)
	at org.appwork.utils.Application.ensureFrameWorkInit(Application.java:923)
	at org.appwork.utils.Application.setApplication(Application.java:840)
	at org.jdownloader.update.launcher.SecondLevelLauncher.<clinit>(SecondLevelLauncher.java:92)
	at org.jdownloader.update.launcher.JDLauncherViaClassLoader.main(JDLauncherViaClassLoader.java:10)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:79)
Logmanager:org.appwork.utils.logging2.extmanager.ExtLogManager@1ef04b5|ClassLoader:sun.misc.Launcher$AppClassLoader@1909752
java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.os.CrossSystem
	at org.appwork.utils.logging.LogFormatter.<init>(LogFormatter.java:58)
	at org.appwork.utils.logging2.LogConsoleHandler$1.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogConsoleHandler.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogSourceProvider.<init>(LogSourceProvider.java:131)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<init>(LoggerFactory.java:148)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.initialize(LoggerFactory.java:100)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<clinit>(LoggerFactory.java:57)
	at org.appwork.utils.Application.ensureFrameWorkInit(Application.java:923)
	at org.appwork.utils.Application.setApplication(Application.java:840)
	at org.jdownloader.update.launcher.SecondLevelLauncher.<clinit>(SecondLevelLauncher.java:92)
	at org.jdownloader.update.launcher.JDLauncherViaClassLoader.main(JDLauncherViaClassLoader.java:10)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:79)
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:79)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.os.CrossSystem
	at org.appwork.utils.logging.LogFormatter.<init>(LogFormatter.java:58)
	at org.appwork.utils.logging2.LogConsoleHandler$1.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogConsoleHandler.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogSourceProvider.<init>(LogSourceProvider.java:131)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<init>(LoggerFactory.java:148)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.initialize(LoggerFactory.java:128)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<clinit>(LoggerFactory.java:57)
	at org.appwork.utils.Application.ensureFrameWorkInit(Application.java:923)
	at org.appwork.utils.Application.setApplication(Application.java:840)
	at org.jdownloader.update.launcher.SecondLevelLauncher.<clinit>(SecondLevelLauncher.java:92)
	at org.jdownloader.update.launcher.JDLauncherViaClassLoader.main(JDLauncherViaClassLoader.java:10)
	... 5 more
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:83)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:79)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.os.CrossSystem
	at org.appwork.utils.logging.LogFormatter.<init>(LogFormatter.java:58)
	at org.appwork.utils.logging2.LogConsoleHandler$1.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogConsoleHandler.<init>(LogConsoleHandler.java:54)
	at org.appwork.utils.logging2.LogSourceProvider.<init>(LogSourceProvider.java:131)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<init>(LoggerFactory.java:148)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.initialize(LoggerFactory.java:128)
	at org.appwork.utils.logging2.extmanager.LoggerFactory.<clinit>(LoggerFactory.java:57)
	at org.appwork.utils.Application.ensureFrameWorkInit(Application.java:923)
	at org.appwork.utils.Application.setApplication(Application.java:840)
	at org.jdownloader.update.launcher.SecondLevelLauncher.<clinit>(SecondLevelLauncher.java:92)
	at org.jdownloader.update.launcher.JDLauncherViaClassLoader.main(JDLauncherViaClassLoader.java:10)
	... 5 more
[1/3|Priority: 10000]ShutdownController: start item->flushing logs to disk
[1/3|Priority: 10000]ShutdownController: item ended after->3
[Done:1/3]
[2/3|Priority: -2147483648]ShutdownController: start item->ShutdownEventWrapper Thread[Thread-0,5,main] - java.util.logging.LogManager$Cleaner Priority: -2147483648
[2/3|Priority: -2147483648]ShutdownController: item ended after->1
[Done:2/3]
[3/3|Priority: -2147483648]ShutdownController: start item->ShutdownEventWrapper Thread[Thread-1,5,main] - java.util.logging.LogManager$Cleaner Priority: -2147483648
[3/3|Priority: -2147483648]ShutdownController: item ended after->1
[Done:3/3]
Shutdown Hooks Finished
Reply With Quote
  #2  
Old 04.11.2017, 14:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

Either start it headless with
java -Djava.awt.headless=true -jar JDownloader.jar
Requires MyJDownloader for remote control

or you have to provide X11 display. Wayland is not yet supported by java
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 04.11.2017, 14:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

Can't connect to X11 window server using ':10.0' as the value of the DISPLAY variable.
Check if that variable is correct! What window server/manager do you use?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 04.11.2017, 15:11
robertus robertus is offline
Mega Loader
 
Join Date: Dec 2010
Posts: 62
Default

Quote:
Originally Posted by Jiaz View Post
Can't connect to X11 window server using ':10.0' as the value of the DISPLAY variable.
Check if that variable is correct! What window server/manager do you use?
remote control of windows 10, but also before raspberry sd format, i use always rdp of win10, and before format, worked.

with sudo java -Djava.awt.headless=true -jar /home/pi/Programmi/JDownloader2/JDownloader.jar


I can launch JD2 but no gui, only web interface.

Code:
pi@raspberrypi:~ $ sudo java -Djava.awt.headless=true -jar /home/pi/Programmi/JDownloader2/JDownloader.jar
JarHandlerWorkaroundOracle:setURLStreamHandlerFactory
JarHandlerWorkaroundOracle:replaceLauncherFactory
JarHandlerWorkaroundOracle:replaceURLClassPath
JarHandlerWorkaroundOracle:replacejarHandler
JarHandlerWorkaroundOracle:replaceLoaders:1
JarHandlerWorkaroundOracle:replaceLoader:0:handler
JarHandlerWorkaroundOracle:replaceLoader:0:handler:jar:file:/home/pi/Programmi/JDownloader2/JDownloader.jar!/
sun.Desktop: null
XDG_CURRENT_DESKTOP: null
KDE_FULL_SESSION: null
KDE_SESSION_VERSION: null
DESKTOP_SESSION: null
GNOME_DESKTOP_SESSION_ID: null
output continue but is too long...

I have tried now in local, without remote control (rdp win10), and works, so of course is a trouble that before i never had with the same configuration.

Last edited by robertus; 04.11.2017 at 15:28.
Reply With Quote
  #5  
Old 04.11.2017, 16:42
robertus robertus is offline
Mega Loader
 
Join Date: Dec 2010
Posts: 62
Default

with:
sudo DISPLAY=:10.0 java -jar JDownloader.jar doesn't works, strange because is sudo.... mistery of linux....


with:
DISPLAY=:10.0 java -jar JDownloader.jar works, but before sd format and reinstall raspbian, i never add this display trigger.

Is possible by default set it?

with: DISPLAY=:10.0
and then:
sudo java -jar JDownloader2.jar
doesn't works.
Reply With Quote
  #6  
Old 06.11.2017, 12:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

Why do you use sudo at all? There is no need to run JDownloader as root!
Fix existing permissions with
sudo chown -R pi:group /home/pi/Programmi/JDownloader2
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 06.11.2017, 12:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

Quote:
with: DISPLAY=:10.0
and then:
sudo java -jar JDownloader2.jar
doesn't works.
You set DISPLAY environment variable in your current environment and then create new one (sudo) which has no DISPLAY variable set

Solution: do not run as root if not required!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 06.11.2017, 12:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

Quote:
Originally Posted by robertus View Post
with:
sudo DISPLAY=:10.0 java -jar JDownloader.jar doesn't works, strange because is sudo.... mistery of linux....
.
This equals to
sudo DISPLAY=:10.0 -> start root bash, set environment variable
java -jar... root bash destroyed and start java as normal user
__________________
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 21:53.
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 - 2020, Jelsoft Enterprises Ltd.