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.

mysql
 Post subject: mysql Post rating: 0   New post Posted: Mon 14 Nov, 2016, 15:08 
User avatar

User rating: 0
Joined: Fri 16 Dec, 2011, 15:05
Posts: 26
Location: Italy, ventimiglia
I copied the code about connecting mysql but the compiler doesn't found "import org.apache.commons.dbcp.*;"

I put the path of dbcp into path environment variable but nothing change.

This is my code:
/////////////////////////////////////////////
////////////////////////////////////////////
package jforex;

import com.dukascopy.api.*;
import java.util.*;
import java.sql.*;
import javax.sql.*;
import org.apache.commons.dbcp.*;

/**
* commons-pool can be downloaded here - https://commons.apache.org/pool/
* commons-dbcp can be downloaded here - https://commons.apache.org/dbcp/
* mysql java connection can be downloaded here - https://dev.mysql.com/downloads/connector/j/5.1.html
*/
@RequiresFullAccess
@Library("c:/Users/toni/JForex/commons-pool2-2.4.2-bin/commons-pool2-2.4.2/commons-pool2-2.4.2.jar;c:/Users/toni/JForex/commons-dbcp2-2.1.1-bin/commons-dbcp2-2.1.1/commons-dbcp2-2.1.1.jar;c:/Users/toni/JForex/mysql-connector-java-5.1.40/mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar")
public class TestMySQLAccess implements IStrategy {

/////////////////////////////////////////////
//////////////////////////////////////////////

Any suggestions?


 
 Post subject: Re: mysql Post rating: 0   New post Posted: Tue 15 Nov, 2016, 14:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In this forum we try to focus on JForex API issues. There are a number of external programmers who can program the strategy for you:
https://www.dukascopy.com/fxcomm/member ... am_service


 

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