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.

Compilation error
 Post subject: Compilation error Post rating: 0   New post Posted: Wed 19 Aug, 2009, 14:09 

User rating: 0
Joined: Tue 18 Aug, 2009, 15:09
Posts: 10
Hi,

I'm new to Jforex, when I create a new strategy, just the default skeleton as in the tutorial I get the following error :

2009-08-19 13:01:41 ----------
2009-08-19 13:01:41 The public type Strategy must be defined in its own file
2009-08-19 13:01:41 ^^^^^^^^
2009-08-19 13:01:41 public class Strategy implements IStrategy {
2009-08-19 13:01:41 1. ERROR in /var/folders/ub/ubDquf1WF0Wda+bvAVtF-U+++TM/-Tmp-/jfxide/tmp/test.java (at line 7)
2009-08-19 13:01:41 ----------
2009-08-19 13:01:40 Compiling...

I'm using mac osx.
Any ideas ?


 
 Post subject: Re: Compilation error Post rating: 0   New post Posted: Thu 20 Aug, 2009, 10:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
"The public type Strategy must be defined in its own file" - please rename the strategy to "Strategy.java" before compiling.

or, rename public class to your strategy name "2009-08-19 13:01:41 public class Strategy implements IStrategy"


 

Jump to:  

cron
  © 1998-2024 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