Difference between revisions of "DF DCTrackVisualizer Install and Run Instruction"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
==Error Mesasges== | ==Error Mesasges== | ||
− | === Could not find or load main class org.jlab.clas.viz.DCVisualizer=== | + | ===Could not find or load main class org.jlab.clas.viz.DCVisualizer=== |
=Install within Netbeans= | =Install within Netbeans= | ||
Line 26: | Line 26: | ||
*Open the project clas-viz under clas12-offline-software > common-tools. | *Open the project clas-viz under clas12-offline-software > common-tools. | ||
*Edit to your heart's delight. | *Edit to your heart's delight. | ||
− | |||
− | |||
You may need to change the default run directory: | You may need to change the default run directory: | ||
*In the projects pane, right click on clas-viz | *In the projects pane, right click on clas-viz | ||
*Click on properties | *Click on properties | ||
*Click on "Run" in the Categories pane | *Click on "Run" in the Categories pane | ||
− | *Change the working directory to point to your clas12-offline-software directory. | + | *Change the working directory to point to your <code>clas12-offline-software</code> directory. |
− | + | Also Ensure that the following environmental variables are set within NetBeans: | |
+ | *Open the Project Properties window. | ||
+ | *Click on "Actions" | ||
+ | *Select "Run project" from the "Actions sub-menu" | ||
+ | *Set the following properties: | ||
+ | **<code>Env.CLAS12DIR=path/to/clas12-offline-software/coatjava</code> | ||
+ | ***This can be either an absolute path or a path relative to the working directory you've set. | ||
+ | **<code>Env.SOLENOIDMAP=<name of the solenoid map file you want to use>.dat</code> | ||
+ | **<code>Env.TORUSMAP=<name of the torus map file you want to use>.dat</code> | ||
==Error Messages== | ==Error Messages== | ||
Revision as of 22:02, 22 December 2018
These instruction are specifically for installing and running the DCTrackVisualizer program.
Install
- If you intend to work on the code, install NetBeans if you haven't already. See here for details.
- Move to or create you're preferred directory. I would suggest NetBeansProjects as a default.
- Clone the following Github repository:
- friadavi/clas12-offline-software
git clone https://github.com/friadavi/clas12-offline-software.git
- Checkout the dcVisualizer branch
git checkout dcVisualizer
- Execute
build-coatjava.sh
- I recommend appending
--nounittests
and--nospotbugs
so that the build doesn't take forever.
- I recommend appending
- The software should now be installed.
Running
Simply run <install directory>/clas12-offline-software/coatjava/bin/dctrackviz
. Note that it may be necessary to use bash
instead of ./
as the script may not source env.sh
otherwise.
Error Mesasges
Could not find or load main class org.jlab.clas.viz.DCVisualizer
Install within Netbeans
To open the project in NetBeans:
- Open NetBeans
- Click on File > Open Project
- Go to the install directory
- Open the project clas-viz under clas12-offline-software > common-tools.
- Edit to your heart's delight.
You may need to change the default run directory:
- In the projects pane, right click on clas-viz
- Click on properties
- Click on "Run" in the Categories pane
- Change the working directory to point to your
clas12-offline-software
directory.
Also Ensure that the following environmental variables are set within NetBeans:
- Open the Project Properties window.
- Click on "Actions"
- Select "Run project" from the "Actions sub-menu"
- Set the following properties:
Env.CLAS12DIR=path/to/clas12-offline-software/coatjava
- This can be either an absolute path or a path relative to the working directory you've set.
Env.SOLENOIDMAP=<name of the solenoid map file you want to use>.dat
Env.TORUSMAP=<name of the torus map file you want to use>.dat
Error Messages
TORUS map not found
java.io.FileNotFoundException:TORUS map not found at [null/etc/data/magfield/null]
ls clas12-offline-software/etc/data/magfield$ ls
Symm_solenoid_r601_phi1_z1201_13June2018.dat Symm_torus_r2501_phi16_z251_24Apr2018.dat