...
Java is required for LCIO installation.
- Install an appropriate JRE JDK from http://java.sun.com/ with a minimum version of 1.4.2.
- In your setup.sh, set JAVA_HOME and JDK_HOME to the Java installation area.
No Format export JAVA_HOME=/cygdrive/c/java/jdk1.4.2/ export JDK_HOME=${JAVA_HOME} export PATH=$JDK_HOME:$JDK_HOME/bin
- To test the Java installation, try to run the Java compiler.
No Format javajavac
Warning |
---|
The above JAVA_HOME directory is an example only. You need to replace it with the correct path to your JDK. |
Info |
---|
Full Technically, installation of LCIO including Java libraries actually requires a Java JDK. The the LCIO C++ libraries should only require a working java command in order to run antrequires a Java JRE, but the JDK is useful for doing reconstruction and analysis where you may want to compile Java programs. |
Proceed to Package Installation!
...
When you want to run later in a Cygwin shell, $XERCESCROOT/bin should be in the PATH, so that Windows can find the DLL at runtime. Since the other applications were linked-in statically, this should be the only setup requirement.
This is the procedure for running SLIC from the Cygwin commandline.
- Select Start -> Programs -> Cygwin -> Cygwin Bash Shell.
- Add Xerces-C++ bin to the path.
No Format export PATH=/cygdrive/c/sim/xerces/bin:$PATH
- Go to the SLIC directory.
No Format cd /cygdrive/c/sim/slic
- Run the executable.
No Format bin/WIN32-g++/slic [options]
...
The final version of setup.sh should look something like be similar to this.
No Format |
---|
#!/bin/sh # 1. work area export sim_work=/cygdrive/c/work/nsim # 2. java export JAVA_HOME=/cygdrive/c/Java/jdk1jre1.4.2 export JDK_HOME=${JAVA_HOME} export PATH=${JAVA_HOME}/bin:${PATH} # 3. clhep installation area export CLHEP_BASE_DIR=${sim_work}/clhep # 4. geant4 export G4INSTALL=${sim_work}/geant4/geant4.7.0.p01 export G4SYSTEM=WIN32-g++ # 5. LCPhys export LCPHYS_BASE=${sim_work}/LCPhys # 6. LCIO export LCIO=${sim_work}/lcio export PATH=$LCIO/tools:$LCIO/bin:$PATH # 7. Xerces-C++ installation area export XERCESCROOT=${sim_work}/xercesc export PATH=$XERCESCROOT/bin:$PATH # 8. GDML export GDML_BASE=${sim_work}/GDML2/CPPGDML export PLATFORM=cygwin_g++ # 9. LCDD export LCDD_BASE=${sim_work}/lcdd # 10. SLIC export SLIC_BASE=${sim_work}/slic |
...