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.

Installing NetBeans
 Post subject: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 03:04 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Hi there

I am trying to instal NetBeans andJForex_SDK and am following Dukascopy's instructions

However, when I add "implements IS" I do not get the suggested choices as per instructions

At step 3, creating a new javafile I notice that I have "Source Packages" showing in location rather than "src" as per Dukascopy's instructions

Any ideas what I need to do to get the link that I am missing?

Many thanks

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 07:33 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
us_copiosus wrote:
At step 3, creating a new javafile I notice that I have "Source Packages" showing in location rather than "src" as per Dukascopy's instructions

Any ideas what I need to do to get the link that I am missing?
Simply proceed treating "Source Packages" the same way as "src" is treated in the instructions.


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 08:19 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Thanks, but this does not address my problem............................

Under step 4, of creating a strategy in NetBeans
when I add "implements IS" the editor does not show all the suggestions as per your instructions
i.e. NetBeans is not trying to guess what I want to write

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 09:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Did you see the notice in parentheses in the point 4. about auto-completion settings?


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 10:01 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Yes - all boxes are ticked

you could be a bit more specific rather than just saying 'check the parameters"

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 11:25 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In general we don't provide support for third-party software. The tutorial you refer to simply demonstrates a usage case and its goal is not to exhaustively cover the NetBeans functionality. If you encounter problems with NetBeans usage please resort to using its documentation:
https://netbeans.org/kb/index.html
For instance here is an official NetBeans video on its IDE features:
https://www.youtube.com/watch?v=xHZbOBzt ... C114D403E7


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 21:35 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
I have just watched NetBeans video entitled "JDK7 Support in NetBeans IDE 7.0
and tried to follow the instructions

I created the simple program SwitchTest and ran it..............

and got the following exception message in the output window
************************
run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
at switchtest.SwitchTest.main(SwitchTest.java:14)
Java Result: 1
BUILD SUCCESSFUL (total time: 9 seconds)
************************

Any ideas anybody?


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 21:40 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Sorry - I spelt color wrong (colour)
The SwitchTest works OK

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Mon 01 Jul, 2013, 22:13 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
OK so where am I up to then.......................

when I create a new strategy , I delete the contents between

public class MyFirstNBStrategy {

and

}

I then insert "implements IStr" after the name but

it does not recognize the class IStr ???????????????

Bob M

p.s. this is after creating the new strategy exactly as SwitchTest is created in the NB video


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Tue 02 Jul, 2013, 22:27 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Hi again.......................

Thanks to JLongo I now see the way forward..........................

Dukascopy have changed the way they distribute JForex API.
Now it is distributed as a marven project without the required jar files but with references in the marven project to the jar files on the Dukascopy servers.....

One needs to unzip the API file to a folder of one's choice and open in NetBeans as a marven project

Next, right click on the new project and start a build so that NetBeans can download from Dukascopy all the necessary jar files.

Then begin to use the API.

Dukascopy Support: I suggest you either update your instructions on this or remove - as there is nothing helpful about a "how to" which is out-of-date

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Wed 03 Jul, 2013, 07:21 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
us_copiosus wrote:
Dukascopy have changed the way they distribute JForex API.
Now it is distributed as a marven project without the required jar files but with references in the marven project to the jar files on the Dukascopy servers.....

One needs to unzip the API file to a folder of one's choice and open in NetBeans as a marven project

Next, right click on the new project and start a build so that NetBeans can download from Dukascopy all the necessary jar files.

Then begin to use the API.
Now you are talking about something that is already described at the very beginning in our wiki article:
https://www.dukascopy.com/wiki/#Use_in_NetBeans
us_copiosus wrote:
Dukascopy Support: I suggest you either update your instructions on this or remove - as there is nothing helpful about a "how to" which is out-of-date
Deployment instructions are up-to-date and the subsequent subsections simply give a usage case for strategy creation in NetBeans. So what exactly in the wiki description you find out-of-date?


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Wed 03 Jul, 2013, 14:29 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Try Eclipse.
Plain, simple, and working...
... just follow the wiki page of the Eclipse-SDK (seriously!).


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Wed 03 Jul, 2013, 21:59 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Thank you tcsabina - I shall try Eclipse - good suggestion...............

Dukascopy Support: what do I find out-of-date?

IMHO the following.....................

Having downloaded NetBeans with Java SE I went through the first part of the following video from NetBeans

bits.netbens.org/media/jdk7-nb70.swf

up to the part where they begin to look at the Switch statement (whether I needed to - somebody else can answer that)

Then we turn to Dukascopy wiki - Use in Netbeans

I believe that 1a should be inserted pointing to the above video

3.Open project

There is no project now labelled JForex-SDK_mvn that I can find! so remove reference to "_mvn"

Maybe I am wrong ?

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Wed 03 Jul, 2013, 22:10 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Trying to create a new strategy in NetBeans.........................

As per wiki

I end up with the outline of a new strategy - OK - but No. 4 does NOT do what it should!

I still am in the position where when I add "implements IS" to the public class MyFirstNBStrategy NB does NOT try and guess what I will write ???????????

Bob M


 
 Post subject: Re: Installing NetBeans Post rating: 2   New post Posted: Fri 05 Jul, 2013, 07:03 

User rating: 2
Joined: Wed 05 Jun, 2013, 12:27
Posts: 9
Maybe this is quite obvious, but in NetBeans you should write "implements IS" and then press "Ctrl + space bar" to see the suggested choices.
This is also because in a new class you will not have the package for the IStrategy imported.

Try import: (at the beginning, although this is not really necesary because Netbeans will do it automatically in the next step)
import com.dukascopy.api.IStrategy;

And then:
public class MyFirstNBStrategy implements IS (press Ctrl + space bar and choose IStrategy)

This should work.


 
 Post subject: Re: Installing NetBeans Post rating: 0   New post Posted: Sun 07 Jul, 2013, 12:05 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Hello mmunoz

How simple is that :)

It is NOT obvious to someone relatively new to Java and NetBeans

Many thanks

Bob M


 

Jump to:  

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