JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 08.01.2017, 12:25
harry61 harry61 is offline
Baby Loader
 
Join Date: Jan 2017
Posts: 8
Default Setting up a JD development environment

I hope this is the right forum since my problem is very general. Else please point me to the correct forum.

I followed http://jdownloader.org/knowledge/wik...nt/get-started to set up a development environment.
What I did:
- install Eclipse Kepler (last one with a dedicated version "for Java Developers"?)
- Install Java JDK (version 1.8.0.112) and select it as default
- install Subclipse
- check out the four repositories
- change settings for /JDownloader/src/org.jdownloader.startup/Main.java
- click "run"

But there seem be be lots of errors.
The "errors" tab says: "errors (100 of 12725)" and also lots of warnings.

If I still click on "run" I get:

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The type new JsonSerializer<JsonFactoryInterface>(){} must implement the inherited abstract method JsonSerializer<JsonFactoryInterface>.toJSonString(Object)
The method toJSonString(JsonFactoryInterface) of type new JsonSerializer<JsonFactoryInterface>(){} must override or implement a supertype method

at org.jdownloader.startup.Main.main(Main.java:210)


Is it a problem with the JDK (is Java 8 supported?) The tutorial mentions Java 6 but that looked very much outdated. Or did I miss some dependencies? Or what else might have gone wrong?

As you might have guessed I am not really a Java developer but did some coding in other languages and I think I can do minor changes and fixes.

Thanks for any help
Harry
Reply With Quote
  #2  
Old 08.01.2017, 13:10
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 13,973
Default

Java 8 is supported and works, I'm using Oracle JDK 1.8.0_112
I use Eclipse Neon.2

have you looked at the bottom of the getting started guide to known issues?

If you need further help I can provide over teamviewer.

Jump our online chat http://jdownloader.org/knowledge/chat and find myself and ask for Teamviewer session

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 09.01.2017, 15:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 44,894
Default

Either join chat and we will help you setup the workspace via Teamviewer or conact us via support@jdownloader.org
JDownloader runs with 1.6-1.8 and experimental support for 1.9
I guess you have set wrong java version in eclipse project. Via Teamviewer we will be able to help you very fast.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 09.01.2017, 17:29
harry61 harry61 is offline
Baby Loader
 
Join Date: Jan 2017
Posts: 8
Default

Thanks a lot, it is working now. Java version should have been correct but my Eclipse seemed to be too old.
raztoki and coalado did a great job getting me up and running!

I tried it with a minor change (add avxhome.unblocked.onl to the decrypter, since avxhome.se and .in is blocked by my provider) and it worked great.
Reply With Quote
  #5  
Old 09.01.2017, 17:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 44,894
Default

You can request svn write access (see end of this article, http://jdownloader.org/knowledge/wik...nt/get-started ) and then commit your changes yourself
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 09.01.2017, 17:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 44,894
Default

Thanks for the feedback! Glad you could get 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:48.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.