JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 29.01.2011, 08:18
Zordon Zordon is offline
JD Alpha
 
Join Date: Jun 2010
Posts: 21
Default JDownloader doesn't compile after OS reinstall

Hi,
I used to be able to compile JD on my old OS after spending days on nearly the same problem.... :(

I downloaded all the files from svn like mentioned here: http://jdownloader.org/knowledge/wik...nt/get-started
I can run jd.Main in eclipse without problems.
The build.xml file compiles without problems. However, when I run it with "java -jar downloader.jar" I get the following error:
Code:
>java -jar jdownloader.jar

------------------------  Thread: 10  -----------------------
10 29.01.11 07:07:06 - INFO [jd.Main(main)] -> Start JDownloader
Exception in thread "main" java.lang.NoClassDefFoundError: jd/nutils/encoding/En
coding
        at jd.nutils.Formatter.filterInt(Formatter.java:144)
        at jd.utils.JDUtilities.getJavaVersion(JDUtilities.java:239)
        at jd.Main.javaCheck(Main.java:139)
        at jd.Main.preInitChecks(Main.java:405)
        at jd.Main.main(Main.java:273)
Caused by: java.lang.ClassNotFoundException: jd.nutils.encoding.Encoding
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 5 more
The manifest.mf looks like this:
Code:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: JD-Team and AppWork UG
Main-Class: jd.Main
Class-Path: libs/BrowserLauncher2.jar libs/Filters.jar libs/JAntiCaptc
 ha.jar libs/JDGUI.jar libs/JDHttp.jar libs/JDUtils.jar libs/appworkut
 ilities.jar libs/clink170.jar libs/cobra.jar libs/dbus/debug-disable.
 jar libs/dbus/hexdump.jar libs/dbus/libdbus-java.jar libs/dbus/unix.j
 ar libs/flex-messaging-common.jar libs/flex-messaging-core.jar libs/h
 sqldb.jar libs/htmlcleaner2_0.jar libs/image4j.jar libs/irclib.jar li
 bs/jackson-core.jar libs/jackson-mapper.jar libs/jetty-io-7.1.6.v2010
 0715.jar libs/jetty-security-7.1.6.v20100715.jar libs/jetty-server-7.
 1.6.v20100715.jar libs/jetty-servlet-7.1.6.v20100715.jar libs/jetty-u
 til-7.1.6.v20100715.jar libs/jna.jar libs/jpfm-fs.jar libs/jpfm.jar l
 ibs/js.jar libs/laf/substance-swingx.jar libs/laf/substance.jar libs/
 laf/synthetica.jar libs/laf/syntheticaBatik.jar libs/laf/syntheticaBl
 ackEye.jar libs/laf/syntheticaBlackMoon.jar libs/laf/syntheticaBlackS
 tar.jar libs/laf/syntheticaBlueIce.jar libs/laf/syntheticaBlueMoon.ja
 r libs/laf/syntheticaBlueSteel.jar libs/laf/syntheticaGreenDream.jar 
 libs/laf/syntheticaMauveMetallic.jar libs/laf/syntheticaOrangeMetalli
 c.jar libs/laf/syntheticaSilverMoon.jar libs/laf/syntheticaSimple2D.j
 ar libs/laf/syntheticaSkyMetallic.jar libs/laf/syntheticaWhiteVision.
 jar libs/laf/trident.jar libs/miglayout.jar libs/savemytube.jar libs/
 sevenzipjbinding-AllPlatforms.jar libs/sevenzipjbinding.jar libs/svnk
 it.jar libs/swingworker.jar libs/swingx.jar plugins/Customizer.jar pl
 ugins/JDScheduler.jar
I run jdownloader in a folder with all the libs mentioned here. So why does it crash on every startup within it's main function? (it stops on line 139 of the current sources on the call of JDUtilities.getJavaVersion() - tested it by adding log lines)
When I try to run jdupdate.jar (also self compiled) it just says: Could not find th main class: jd.update.Main. Programm will exit.

So I guess again a "simple" class path problem which is affecting both jars??

Thanks.

edit. uploaded the JDownloader.jar file packed as rar
Attached Files
File Type: rar JDownloader.jar.rar (640.7 KB, 313 views)

Last edited by Jiaz; 31.01.2011 at 11:04.
Reply With Quote
  #2  
Old 29.01.2011, 10:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

i would say that your generated folder structutre is not complete or you are missing the libs folder the jar alone is not runnable
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 29.01.2011, 17:39
Zordon Zordon is offline
JD Alpha
 
Join Date: Jun 2010
Posts: 21
Default

Thank you so much for your help. Desperately tried to compile it all night...

But then it would run within and official JD folder (where I can execute your binary)?
Since it doesn't, there has to be something else wrong?
Do I have to configure anything on the build.xml file? See the screenshot for my settings (just the ones from svn).

edit. does the ant script need some system environment variables? (but then it wouldn't compile at all?) here the build log:
Spoiler:
Code:
Buildfile: D:\Dokumente\Programmierung\Java\JDownloader\build\build.xml
clean:
   [delete] Deleting directory D:\Dokumente\Programmierung\Java\JDownloader\dist
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist
copy_res:
     [copy] Copying 722 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd
     [copy] Copying 55 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\libs
     [copy] Copying 1 file to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\libs
     [copy] Copying 28 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\licenses
     [copy] Copying 1 file to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\languages
     [copy] Copying 6 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\images
     [copy] Copying 8 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\tools
     [copy] Copying 10 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\tmp
compile:
     [echo] Finished.
jarMain:
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\libs\JDHttp.jar
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\libs\JDGUI.jar
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\libs\JAntiCaptcha.jar
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\libs\JDUtils.jar
   [delete] Deleting: D:\Dokumente\Programmierung\Java\JDownloader\dist\Manifest.MF
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\JDownloader.jar
   [delete] Deleting: D:\Dokumente\Programmierung\Java\JDownloader\dist\Manifest.MF
jarWebupdater:
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jdupdate.jar
   [delete] Deleting: D:\Dokumente\Programmierung\Java\JDownloader\dist\Manifest.MF
jarReconnectOptionals:
     [echo] Creating batch
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\reconnect
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\reconnect\batch.rec
   [delete] Deleting: D:\Dokumente\Programmierung\Java\JDownloader\dist\Manifest.MF
jarRestarter:
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\tools\tinyupdate.jar
   [delete] Deleting: D:\Dokumente\Programmierung\Java\JDownloader\dist\Manifest.MF
copy_compiled:
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd\plugins\hoster
     [copy] Copying 516 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd\plugins\hoster
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd\plugins\decrypter
     [copy] Copying 341 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd\plugins\decrypter
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd\dynamics
     [copy] Copying 4 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\jd\dynamics
jarOptionals:
     [echo] Creating JDChat
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\100__JDChat\plugins
     [copy] Copying 2 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\100__JDChat
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\100__JDChat\plugins\JDChat.jar
     [echo] Creating JDwebinterface
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\101__JDwebinterface\plugins
     [copy] Copying 30 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\101__JDwebinterface
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\101__JDwebinterface\plugins\JDwebinterface.jar
     [echo] Creating infobar
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\102__infobar\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\102__infobar\plugins\infobar.jar
     [echo] Creating lecturnity
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\103__lecturnity\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\103__lecturnity\plugins\lecturnity.jar
     [echo] Creating JDRemoteControl
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\104__JDRemoteControl\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\104__JDRemoteControl\plugins\JDRemoteControl.jar
     [echo] Creating JDScheduler
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\105__JDScheduler\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\105__JDScheduler\plugins\JDScheduler.jar
     [echo] Creating JDShutdown
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\106__JDShutdown\plugins
     [copy] Copying 4 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\106__JDShutdown
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\106__JDShutdown\plugins\JDShutdown.jar
     [echo] Creating improveddock
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\107__improveddock\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\107__improveddock\plugins\improveddock.jar
     [echo] Creating JDLangFileEditor
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\120__JDLangFileEditor\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\120__JDLangFileEditor\plugins\JDLangFileEditor.jar
     [echo] Creating JDInfoFileWriter
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\122__JDInfoFileWriter\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\122__JDInfoFileWriter\plugins\JDInfoFileWriter.jar
     [echo] Creating JDUnrar
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\123__JDUnrar\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\123__JDUnrar\plugins\JDUnrar.jar
     [echo] Creating JDHJMerge
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\127__JDHJMerge\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\127__JDHJMerge\plugins\JDHJMerge.jar
     [echo] Creating JDTray
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\128__JDTray\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\128__JDTray\plugins\JDTray.jar
     [echo] Creating ExternInterface
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\129__ExternInterface\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\129__ExternInterface\plugins\ExternInterface.jar
     [echo] Creating JDPremium
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\130__JDPremium\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\130__JDPremium\plugins\JDPremium.jar
     [echo] Creating JDGrowl
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\131__JDGrowl\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\131__JDGrowl\plugins\JDGrowl.jar
     [echo] Creating Customizer
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\132__Customizer\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\132__Customizer\plugins\Customizer.jar
     [echo] Creating AntiShutdown
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\133__AntiShutdown\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\133__AntiShutdown\plugins\AntiShutdown.jar
     [echo] Creating RouterDBEditor
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\134__RouterDBEditor\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\134__RouterDBEditor\plugins\RouterDBEditor.jar
     [echo] Creating scriptlauncher
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\137__scriptlauncher\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\137__scriptlauncher\plugins\scriptlauncher.jar
     [echo] Creating JDFeedMe
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\140__JDFeedMe\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\140__JDFeedMe\plugins\JDFeedMe.jar
     [echo] Creating AntiReconnect
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\141__AntiReconnect\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\141__AntiReconnect\plugins\AntiReconnect.jar
     [echo] Creating Extraction
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\142__Extraction\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\142__Extraction\plugins\Extraction.jar
     [echo] Creating folderwatch
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\143__folderwatch\plugins
      [jar] Building jar: D:\Dokumente\Programmierung\Java\JDownloader\dist\pluginressourcen\143__folderwatch\plugins\folderwatch.jar
   [delete] Deleting: D:\Dokumente\Programmierung\Java\JDownloader\dist\Manifest.MF
copy_jarOptionals:
    [mkdir] Created dir: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader\plugins
     [copy] Copying 36 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader
     [copy] Copying 24 files to D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader
build_all:
     [echo] Finished.
pack_multios:
      [zip] Building zip: D:\Dokumente\Programmierung\Java\JDownloader\dist\JDownloader_multios_13478.zip
BUILD SUCCESSFUL
Total time: 12 seconds
Attached Images
File Type: jpg Classpath.jpg (96.1 KB, 285 views)

Last edited by Zordon; 29.01.2011 at 17:48.
Reply With Quote
  #4  
Old 29.01.2011, 22:23
Zordon Zordon is offline
JD Alpha
 
Join Date: Jun 2010
Posts: 21
Default

I fixed it by copying (missing?) sources from JDBrowser to JDownloader project.
But now all addons are missing (even though they are in the directory with the jar or its subdirectories).
Any idea?
Attached Images
File Type: jpg Addons.jpg (56.2 KB, 274 views)
Reply With Quote
  #5  
Old 29.01.2011, 23:00
Zordon Zordon is offline
JD Alpha
 
Join Date: Jun 2010
Posts: 21
Default

And why did I have to copy something??
I have these project folders all in the same directory (and in eclipse):
JDownloader
JDBrowser
JDUpdater
AppWorkUtils

Shouldn't it automatically get the needed classes from JDBrowser, when I run build.xml?
Reply With Quote
  #6  
Old 31.01.2011, 11:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

i guess the buld script needs to get updated.
__________________
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:02.
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 - 2019, Jelsoft Enterprises Ltd.