Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

I can not load dll in my strategy on jforex
 Post subject: I can not load dll in my strategy on jforex Post rating: 0   New post Posted: Mon 09 Dec, 2013, 18:27 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
Hi I want to use native method from dll in my strategy.
If I use it under NetBeans using SDK it work OK.
If I want to compile this strategy on JForex platform I have messages: "Cannot load target class"

Problem is with line:

System.loadLibrary("libDLLtoATSDLL");

where my dll file is libDLLtoATSDLL.dll

So where should I place my dll file to platform can see it?
or what is my PATH for Java, where I can check this?

Thanks


 
 Post subject: Re: I can not load dll in my strategy on jforex Post rating: 1   New post Posted: Mon 09 Dec, 2013, 20:40 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Possibly this topic will be useful: https://stackoverflow.com/questions/14997343/how-to-call-external-dll-function-from-java-code


 
 Post subject: Re: I can not load dll in my strategy on jforex Post rating: 0   New post Posted: Tue 10 Dec, 2013, 14:44 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
Thanks, but under NetBeans it works fine. I know how to create dll which will work with java in general.

But problem is if I wat to compile it under JForex Platform.

Problem is with System.loadLibrary(String name) method. I do not know what java.library.path is using on JForex Platform.

Support please tell me where should I put my dll file to be visible from JForex platform in System.loadLibrary(String name) method.


 
 Post subject: Re: I can not load dll in my strategy on jforex Post rating: 0   New post Posted: Wed 11 Dec, 2013, 16:32 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
You cannot include the dll itself.
There are plenty of topics in the forums about dll call, for example this.
And another one here.


 

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