Support for JDownloader

Discuss with the community any ideas you'd love to see in future DiskStations and DSM updates! We do our best to monitor and forward all of them, but we recommend to also use this form as our team will systematically see your suggestion:
http://www.synology.com/support/inquiry ... enu&type=1

Re: Support for JDownloader

Postby gpborges » Thu Mar 10, 2011 7:37 am

Ok, some progress update...

I've downloaded JDownloader.zip straight to my NAS and extracted it to /opt/JDownloader and then tried to run it:

Code: Select all
DiskStation> jamvm -Djava.runtime.name=jamvm -jar JDownloader.jar
java.lang.reflect.InvocationTargetException
   at java.lang.reflect.VMMethod.invoke(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:327)
   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
[color=#FF0000]Caused by: java.lang.IllegalArgumentException: dayOfWeekInMonth out of range[/color]
   at java.util.SimpleTimeZone.checkRule(SimpleTimeZone.java:435)
   at java.util.SimpleTimeZone.setStartRule(SimpleTimeZone.java:470)
   at java.util.SimpleTimeZone.<init>(SimpleTimeZone.java:335)
   at java.util.SimpleTimeZone.<init>(SimpleTimeZone.java:356)
   at java.util.TimeZone.getDefaultTimeZone(TimeZone.java:1122)
   at java.util.VMTimeZone.getDefaultTimeZoneId(VMTimeZone.java:102)
   at java.util.TimeZone$1.run(TimeZone.java:119)
   at java.security.AccessController.doPrivileged(AccessController.java:96)
   at java.util.TimeZone.defaultZone(TimeZone.java:105)
   at java.util.TimeZone.getDefault(TimeZone.java:1740)
   at java.util.GregorianCalendar.<init>(GregorianCalendar.java:212)
   at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:455)
   at java.text.DateFormat.computeInstance(DateFormat.java:556)
   at java.text.DateFormat.getDateTimeInstance(DateFormat.java:711)
   at java.text.DateFormat.getDateTimeInstance(DateFormat.java:693)
   at jd.controlling.LogFormatter.<init>(Unknown Source)
   at jd.controlling.JDLogger.getLogger(Unknown Source)
   at jd.Main.main(Unknown Source)
   at java.lang.reflect.VMMethod.invoke(Native Method)
   ...2 more
DiskStation>


So, looking at the code I could see this error was happening during formatted logging due to missing time zone. To fix it just need to set the java user.timezone system property like this:

Code: Select all
jamvm -Djava.runtime.name=jamvm -Duser.timezone=America/Sao_Paulo JDownloader.jar


Thus, JDownloader starts and fails when trying to get a default toolkit (for GUI painting) and this is ok once we don't have it and won't use it as well.

Here is the full log:

Code: Select all
DiskStation> jamvm -Djava.runtime.name=jamvm -Duser.timezone=America/Sao_Paulo -jar JDownloader.jar

------------------------  Thread: 1076163368  -----------------------
1076163368 3/10/11 3:30:44 a.m. - INFO [jd.Main(main)] -> Start JDownloader
1076163368 3/10/11 3:30:52 a.m. - WARNING [jd.Main(heapCheck)] -> Heapcheck: Not enough heap. use: java -Xmx512m -jar JDownloader.jar
JAR
1076163368 3/10/11 3:30:53 a.m. - FINER [jd.config.DatabaseConnector(<init>)] -> Loading database
1076163368 3/10/11 3:30:59 a.m. - FINER [jd.config.DatabaseConnector(<init>)] -> No CONFIGURATION database found. Creating new one.
1076163368 3/10/11 3:30:59 a.m. - FINER [jd.config.DatabaseConnector(<init>)] -> Starting database wrapper
Loaded language: English
1076163368 3/10/11 3:31:00 a.m. - FINEST [jd.utils.JDUtilities(getJDClassLoader)] -> Create Classloader: for: /opt/JDownloader
1076163368 3/10/11 3:31:00 a.m. - FINEST [jd.JDClassLoader(<init>)] -> rootDir:/opt/JDownloader
/opt/JDownloader
 file:/opt/JDownloader/jd/
1076163368 3/10/11 3:31:01 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDLangFileEditor.jar
1076163368 3/10/11 3:31:01 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDExternInterface.jar
1076163368 3/10/11 3:31:02 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/schedule.jar
1076163368 3/10/11 3:31:02 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDHTTPLiveHeaderScripter.jar
1076163368 3/10/11 3:31:03 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDPackageCustomizer.jar
1076163368 3/10/11 3:31:03 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDShutdown.jar
1076163368 3/10/11 3:31:03 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDChat.jar
1076163368 3/10/11 3:31:04 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDFolderWatch.jar
1076163368 3/10/11 3:31:04 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDRemoteControl.jar
1076163368 3/10/11 3:31:05 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDUnrar.jar
1076163368 3/10/11 3:31:05 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDWebinterface.jar
1076163368 3/10/11 3:31:06 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDTray.jar
1076163368 3/10/11 3:31:06 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDInfoFileWriter.jar
1076163368 3/10/11 3:31:07 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDHJMerge.jar
1076163368 3/10/11 3:31:07 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/plugins/JDGrowl.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /opt/JDownloader/JDownloader.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBlackStar.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBlackEye.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/substance-swingx.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaMauveMetallic.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/synthetica.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBlueSteel.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaSilverMoon.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaSkyMetallic.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBlueIce.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaSimple2D.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBatik.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBlueMoon.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaWhiteVision.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaGreenDream.jar
1076163368 3/10/11 3:31:11 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/substance.jar
1076163368 3/10/11 3:31:12 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaOrangeMetallic.jar
1076163368 3/10/11 3:31:12 a.m. - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /opt/JDownloader/libs/laf/syntheticaBlackMoon.jar
1076163368 3/10/11 3:31:12 a.m. - INFO [jd.utils.locale.JDL(parseLanguageFile)] -> parse lng file /opt/JDownloader/jd/languages/en.loc
1076163368 3/10/11 3:31:13 a.m. - INFO [jd.utils.locale.JDL(parseLanguageFile)] -> parse lng file end /opt/JDownloader/jd/languages/en.loc
1076163368 3/10/11 3:31:13 a.m. - SEVERE [jd.utils.JDTheme(getThemeValue)] -> Use setTheme() first!
java.lang.reflect.InvocationTargetException
   at java.lang.reflect.VMMethod.invoke(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:327)
   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
   at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:94)
   at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:77)
   at javax.imageio.ImageIO.getRegistry(ImageIO.java:637)
   at javax.imageio.ImageIO.read(ImageIO.java:882)
   at javax.imageio.ImageIO.read(ImageIO.java:953)
   at javax.imageio.ImageIO.read(ImageIO.java:983)
   at jd.nutils.JDImage.getImage(JDImage.java:160)
   at jd.utils.JDTheme.getImage(Unknown Source)
   at jd.utils.JDTheme.II(Unknown Source)
   at jd.Main.javaCheck(Unknown Source)
   at jd.Main.preInitChecks(Unknown Source)
   at jd.Main.main(Unknown Source)
   at java.lang.reflect.VMMethod.invoke(Native Method)
   ...2 more
[color=#FF0000]Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path[/color]
   at java.lang.Runtime.loadLibrary(Runtime.java:763)
   at java.lang.System.loadLibrary(System.java:670)
   at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:177)
   at java.lang.VMClass.forName(Native Method)
   at java.lang.Class.forName(Class.java:233)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)
   ...15 more
DiskStation>


To sum up, now I don't have anything to do on NAS side (jamVM) and I should now turn to JDownloader team asking for directions on the CLI implementation itself... That was a PRODUCTIVE NIGHT! :-D

Will keep u guys posted...
DS411J
Researching/designing about how to get JDownloader running natively on Synology DSM
gpborges
Trainee
Trainee
 
Posts: 10
Joined: Wed Dec 15, 2010 8:54 pm
Location: Sumaré-SP / Brazil

Re: Support for JDownloader

Postby lionheart12 » Tue Mar 15, 2011 6:08 am

Keep up the good work! I would support you if I had any knowledge in programming.
lionheart12
I'm New!
I'm New!
 
Posts: 1
Joined: Tue Mar 15, 2011 6:06 am

Re: Support for JDownloader

Postby gpborges » Wed Mar 16, 2011 2:04 am

Yeah! I will do it you bet... I just don't have available time to do it... I work VERY hard at IBM Brazil, 2 kids, wife... and the list goes on... hehehehe. But I've started it you can see in the message above and we do have a way to run it on this jamVM that we have available through IPK in our NAS. I had the initial meeting with one of the JD main developers and we've agreed on a design plan. I hope I can at least start writing it this week... Lets see... :-)

I will keep u guys posted about it.
DS411J
Researching/designing about how to get JDownloader running natively on Synology DSM
gpborges
Trainee
Trainee
 
Posts: 10
Joined: Wed Dec 15, 2010 8:54 pm
Location: Sumaré-SP / Brazil

Re: Support for JDownloader

Postby aytek » Wed Mar 16, 2011 2:56 pm

gpborges wrote:Yeah! I will do it you bet... I just don't have available time to do it... I work VERY hard at IBM Brazil, 2 kids, wife... and the list goes on... hehehehe. But I've started it you can see in the message above and we do have a way to run it on this jamVM that we have available through IPK in our NAS. I had the initial meeting with one of the JD main developers and we've agreed on a design plan. I hope I can at least start writing it this week... Lets see... :-)

I will keep u guys posted about it.



That's great news, keep up the good work !!
Model: DS410J
Firmware: DSM 3.1-1553 (BETA)
Volume 1: Simple WD20EADS (now dead :( )
External Devices: APC Back-UPS 230V via USB
User avatar
aytek
Student
Student
 
Posts: 71
Joined: Fri Apr 30, 2010 11:15 am

Re: Support for JDownloader

Postby Aholic » Thu Mar 17, 2011 11:38 am

gpborges wrote:Yeah! I will do it you bet... I just don't have available time to do it... I work VERY hard at IBM Brazil, 2 kids, wife... and the list goes on... hehehehe. But I've started it you can see in the message above and we do have a way to run it on this jamVM that we have available through IPK in our NAS. I had the initial meeting with one of the JD main developers and we've agreed on a design plan. I hope I can at least start writing it this week... Lets see... :-)

I will keep u guys posted about it.



Sounds great man. Thanx for looking into this!
Aholic
Trainee
Trainee
 
Posts: 10
Joined: Tue Jul 27, 2010 11:18 am

Re: Support for JDownloader

Postby ds410user » Thu Mar 17, 2011 4:10 pm

Thumps up! :D
Greetings to brazil from germany!
ds410user
Trainee
Trainee
 
Posts: 10
Joined: Fri Jul 16, 2010 1:27 pm
Location: Germany

Re: Support for JDownloader

Postby ginopilotino » Mon Apr 04, 2011 11:54 am

up up!
ginopilotino
Student
Student
 
Posts: 60
Joined: Thu Nov 18, 2010 8:53 pm
Location: Italia

Re: Support for JDownloader

Postby iStone » Sun Apr 10, 2011 8:07 am

gpborges wrote:Yeah! I will do it you bet... I just don't have available time to do it... I work VERY hard at IBM Brazil, 2 kids, wife... and the list goes on... hehehehe. But I've started it you can see in the message above and we do have a way to run it on this jamVM that we have available through IPK in our NAS. I had the initial meeting with one of the JD main developers and we've agreed on a design plan. I hope I can at least start writing it this week... Lets see... :-)

I will keep u guys posted about it.


Thanks gpborges!

Really looking forwards to your progress and co-effort with JD developers.

In fact JD support is a final decision for me to buy a Synology NAS. Heard JDownloader needs at least 256/512MB in other forum? Yours is 411J has only 128MB does it work also?
DS211/DSM/4.1, Apache/2.2.22 (Unix) PHP/5.3.15phpMyadmin:3.5.3, asking...
- JDownloader package/plugin
- Online HDD health/alarm system
_______________________________________________________________
http://www.synology-forum.de
http://www.synology-forum.nl
iStone
Rookie
Rookie
 
Posts: 37
Joined: Sun Apr 10, 2011 7:58 am

Re: Support for JDownloader

Postby Andrajos » Thu Apr 28, 2011 9:55 pm

Andrajos
I'm New!
I'm New!
 
Posts: 4
Joined: Wed Aug 04, 2010 10:19 am

Re: Support for JDownloader

Postby AnakinSpain » Fri May 06, 2011 12:14 pm

upp
AnakinSpain
Trainee
Trainee
 
Posts: 15
Joined: Wed Sep 01, 2010 5:13 pm

Re: Support for JDownloader

Postby capflam » Sat May 21, 2011 7:33 am

I really whish jdownloader was added. I receive my station in a few days and harly see myself not using a download manager.

Is there Any download manager that supports Filesonic, fileserver, hotfile and that can be installed easily as of now?
capflam
I'm New!
I'm New!
 
Posts: 5
Joined: Wed May 18, 2011 1:19 pm

Re: Support for JDownloader

Postby dzozii » Mon May 23, 2011 8:23 am

try sdownloader
User avatar
dzozii
I'm New!
I'm New!
 
Posts: 4
Joined: Mon Dec 06, 2010 11:09 am

Re: Support for JDownloader

Postby bouvrie » Fri Jun 03, 2011 10:42 pm

+1 for JDownloader on Synology. Or if the original JDownloader source wouldn't run properly on the devices (i.e. have massive system requirements), perhaps an alternative download manager application could be developed with support for JDownloader's plugins? Or perhaps even 'update' the native Download Station with JDownloader plugin support?

That way it'd still be as good as JDownloader. :)
bouvrie
Trainee
Trainee
 
Posts: 11
Joined: Tue Feb 02, 2010 12:58 pm

Re: Support for JDownloader

Postby aytek » Fri Jun 10, 2011 12:19 pm

UP, most requested feature is a better and more functional download client!!!
Model: DS410J
Firmware: DSM 3.1-1553 (BETA)
Volume 1: Simple WD20EADS (now dead :( )
External Devices: APC Back-UPS 230V via USB
User avatar
aytek
Student
Student
 
Posts: 71
Joined: Fri Apr 30, 2010 11:15 am

Re: Support for JDownloader

Postby stevokk » Fri Jun 10, 2011 10:03 pm

This would be fantastic! Maybe contact the SDownloader developer to merge his PHP interface into this project? No point in having 2 different clients both with their good points...and I'm sure he will have some good knowledge

+1 for this!
stevokk
I'm New!
I'm New!
 
Posts: 3
Joined: Fri Jun 10, 2011 3:56 pm

PreviousNext

Return to Feature Requests & Product Improvement Suggestions

Who is online

Users browsing this forum: No registered users and 9 guests