Installing and configuring Netbeans and JDK
The machines at the Fermilab computer training center were preinstalled with Scientific Linux Fermi (SLF) 6.3 (32 Bit).
First get the netbeans java jdk bundle from below.
http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html
make the installation script executable and execute it (check the Preferences of your Browser to find out where the file is downloaded):
chmod +x /[path to your Download area]/Downloads/jdk-6u38-nb-7_2_1-linux-i586-ml.sh
/[path to your Download area]//Downloads/jdk-6u38-nb-7_2_1-linux-i586-ml.sh
Since the lcsim software is located in the CVS code repository first get the necessary plugin for netbeans
Select Tools-> Plugins->Available Plugins
then select CVS -> install and accept the licence agreement and click finish
Then to install the lcsim framework
select Team->CVS->Checkout
specify the CVS Root as shown below and leave the password field blank
:pserver:anonymous@cvs.freehep.org:2401/cvs/lcd
Getting and Building lcsim Software
Geomconverter
Open the project and when it asks you for the prime build.This will take a while since initially all necessary libraries need to be downloaded from the maven code repositories. Hopefully in the end it will say:
BUILD SUCCESS
lcsim.org
So repeat the process for lcsim:
Open the project right click on org.lcim and select build. Again this will take a while. To speed up the process in the future you might want to select to skip the tests the next time you build.
org.lcsim_> Properties->Build->Actions-> Build project -> Add-> skipTests=true
org.lcsim_> Properties->Build->Actions-> Clean and Build project -> Add-> skipTests=true
lcsim-contrib
Getting and configuring JAS3
the latest is 0.9.9:
http://java.freehep.org/maven2/org/freehep/jas-assembly/0.9.9/jas-assembly-0.9.9-distribution.tar.gz
tar xzvf /[path to your Download area]/Downloads/jas-assembly-0.9.9-distribution.tar.gz
jas-assembly-0.9.9/jas3
From the menu bar select View -> Plugin Manager.
Now choose the Available Tab, and select all of the following:
from hep -> visualization:
- HepRep Plugin
- WIRED 4
- WIRED 4 Base Library
from hep -> linearcollider
- org.lcsim
Make sure you use the same Java that was bundled with netbeans and that you build lcsim etc. with:
From the menu bar select View -> Preferences -> Java -> Compiler
and set to the correct javac: