Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

JForex client does not obey classpath in manifest
 Post subject: JForex client does not obey classpath in manifest Post rating: 0   New post Posted: Sat 12 Mar, 2016, 23:30 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
Hello Support,

in my strategy I need to use many external libraries.
In order to just list one of them in the @Library annotation, I added the Class-Path tags for all the other needed libraries in the manifest file.
But when compiling to .jfx, I see lots of ClassNotFoundException for all the classes which should be in the classpath.
Example:
In the strategy I have
@Library("MyJar1.jar")

In the manifest of MyJar1.jar there is this attribute:
Class-Path: MyJar2.jar

MyJar2.jar is in the same folder as MyJar1.jar.
When trying to compile, JForex complains about missing classes in MyJar2.jar.
The only fix is to write
@Library("MyJar1.jar;MyJar2.jar")

but I don't like this approach. The list gets very long and the compiled .jfx file is almost 500MB in size with all libraries included.

Why is the manifest attribute Class-Path of MyJar1.jar ignored?

Thx,
Juergen


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com