[QFJ-48] Fix class path in examples scripts Created: 12/Aug/06 Updated: 24/Jan/07 Resolved: 04/Sep/06 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | 1.0.3 |
Type: | Bug | Priority: | Default |
Reporter: | Markus Khouri | Assignee: | Steve Bate |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Attachments: | banzai.bat banzai.updated.bat banzai.updated.sh executor.bat executor.bat executor.updated.bat executor.updated.sh |
Description |
I downloaded "quickfixj-1.0.1-bin.zip". expanding this created a directory named "bin", amoung others. inside of this were 4 files. "banzai.bat" contains the following code... note the path reference to "output/eclipse/classes". The path "output/eclipse/classes" is not included in the zip file; likewise, "output/ant/jars/quickfixj.jar" is also not in the zip..... thus I cannot execute the scripts. Also, if you execute these script files from the "bin" subdirectory, as would be expected, the paths starting with "lib/" should start with "../lib/" @echo off cd .. |
Comments |
Comment by Markus Khouri [ 12/Aug/06 ] |
I was able to get this working with the following changes: (1) removing the path to the quickfixj.jar in the following line (2) removed the "cd .." so that when the script exits, I was in the same directory as when i started, allowing my to re-execute the script file. |
Comment by Markus Khouri [ 12/Aug/06 ] |
My modified banzai.bat that works for me |
Comment by Markus Khouri [ 12/Aug/06 ] |
I had a similar issue with "executor.bat". I changed the classpath entries per the previos comment. I had to leave in the line that changed the directory, since the sample app seems to be looking for the Fixxx.XML file under the "etc" directory. |
Comment by Markus Khouri [ 12/Aug/06 ] |
Attaching my modified "executor.bat" file which works for me. |
Comment by Markus Khouri [ 12/Aug/06 ] |
use this attachment, not the other one. this one include the following line at the end, so that the command prompt is left where it began. "cd bin" |
Comment by Steve Bate [ 17/Aug/06 ] |
Would you have time to modify the .bat files so that they detect the location of the batch file and set up the class path relative to that? For example, if someone ran C:/foo/bar/baz/banza.bat, the base directory would be set to C:/foo/bar/baz/ and the classpath would be defined relative to that. I could do something similar for the *nix shell scripts. The eclipse and ant paths are there for development environments. However, there should obviously have been a class path entry for the library location in a binary distribution. Thanks for reporting that problem. |
Comment by Steve Bate [ 17/Aug/06 ] |
Hi Markus. Thanks for helping on this issue. When you are complete, please reassign the issue back to me and I'll close it after modifying the *nix scripts (unless you want to do that too ). Thanks again. |
Comment by Markus Khouri [ 22/Aug/06 ] |
Attaching "banzai.updated.bat" and "executor.updated.bat", which contain the corrected classpath setup |
Comment by Markus Khouri [ 22/Aug/06 ] |
Attaching updated "banzai.updated.sh" and "executor.updated.sh" files. NOTE: These have not been validated since I do not have a linux environment to test them out. |
Comment by Steve Bate [ 26/Aug/06 ] |
Thanks Markus. I appreciate it. I'll reopen the issue until I have a chance to try to *nix scripts. |
Comment by Steve Bate [ 02/Sep/06 ] |
I've modified the DOS and *nix scripts to be independent of the execution directory. They both find the script directory from the path of the script and then initialize classpaths and other paths relative to that location. I've also factored out some of the duplication between the scripts. |