Setup to run QuickFixJ example codes in NetBeans 6.5.1:
1. Download the QuickFixJ binary and source packages and extract it.
2. Create a new project in NetBeans IDE. Let's call it QuickFixJSamples
3. Add these paths:
Source path: quickfixj\examples\src\main\java\
Library: All .jar files under quickfixj\ and quickfixj\lib\
At this point, all samples can be built and executed. But since they are all in one project, there's no practical use of it. Let's toss it.
So to run the 3 samples independently, do this:
1. Create 2 projects:
Banzai:
Copy the banzai example source codes from quickfix to the project src. You should have:
$ProjectFolder\Banzai\src\quickfix\examples\banzai\ui\
Set Main class: quickfix.examples.banzai.Banzai
Executor:
Copy the executor example source codes from quickfix to the project src. You should have:
$ProjectFolder\Executor\src\quickfix\examples\executor\
Set Main class: quickfix.examples.executor.Executor
Build the projects, you get the .jar that can be executed by:
java -jar "$ProjectFolder\Executor\dist\Executor.jar"
java -jar "$ProjectFolder\Banzai\dist\Banzai.jar"
Banzai and Executor talk to each other. The execution price was set to 12.3 somewhere in the code. This should come from realtime database.
No comments:
Post a Comment