Dukascopy
 
 
Wiki JStore Search Login

public type test_VJ must be defined in its own file
 Post subject: public type test_VJ must be defined in its own file Post rating: 0   New post Posted: Tue 02 Jul, 2013, 18:56 

User rating: 0
Joined: Tue 28 May, 2013, 14:54
Posts: 8
Location: SwedenSweden
Hi:

I have made a strategy using VJforex. However when I copied the source code into the Jforex and complied it, the error comes as below:

17:49:21 The public type test_VJ must be defined in its own file
17:49:21 ^^^^^^^^^^^^^^^^^^^^^
17:49:21 public class test_VJ implements IStrategy {
2013-07-02 17:49:21 1. ERROR in C:\Users\chxi7359\Local Settings\JForex\chxi7359\jfxide\tmp\compile\test_VJ.java (at line 18)
2013-07-02 17:49:21 ----------

Seemingly something wrong with the "public" variables. How can I solve this? Thanks!


 
The Best Answer  Post subject: Re: public type test_VJ must be defined in its own file Post rating: 0   New post Posted: Wed 03 Jul, 2013, 07:16 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
chxaoao wrote:
Hi:

I have made a strategy using VJforex. However when I copied the source code into the Jforex and complied it, the error comes as below:

17:49:21 The public type test_VJ must be defined in its own file
17:49:21 ^^^^^^^^^^^^^^^^^^^^^
17:49:21 public class test_VJ implements IStrategy {
2013-07-02 17:49:21 1. ERROR in C:\Users\chxi7359\Local Settings\JForex\chxi7359\jfxide\tmp\compile\test_VJ.java (at line 18)
2013-07-02 17:49:21 ----------

Seemingly something wrong with the "public" variables. How can I solve this? Thanks!


Does the file have the same name: test_VJ ? It has to be the same as the name before implements.
Edit: Didn't read further... it seams it has the same name. Post the whole file so I can take a look at it and tell what is wrong, if I can.

Cheers


 
 Post subject: Re: public type test_VJ must be defined in its own file Post rating: 0   New post Posted: Wed 03 Jul, 2013, 10:31 

User rating: 0
Joined: Tue 28 May, 2013, 14:54
Posts: 8
Location: SwedenSweden
Thanks Heruar! After I changed the file name of the strategy to "test_VJ" ,it worked!
Great!


 

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