Java Environment for LHCbIntroductionThe only package written in java in the Gaudi framework is at this time the XmlEditor package. These instructions are thus only intended to those using this package, others can forget java right now.This page explains how to use java on your computer, either at CERN or outside CERN. This is not particular to the Gaudi environment but is the way every java environment must be set up. InstallationWe make a difference here between the CERN and the rest of the world. You should however not take it too seriously. The CERN is in fact all place where you have an access to the CERN afs, whereas the rest of the world is either places where you don't have access to the CERN afs or places where you don't want to use it (maybe because it is too slow).Even if you are at CERN, you can use the outside CERN installation. It won't hurt and it will let you be independant of the afs network, at least in the java domain. Outside CERNThe only difference with the CERN case is that you have to install a JDK on your system first whereas it is already installed on the afs at CERN. You can download the one you want, providing it is version 1.2.2 or later.Here are few places where you can find some : Sun jdk1.3 , blackdown jdk, IBM jdk. Once it is downloaded and installed using the documentation provided with the jdk you choose, just run the same steps as if you were inside the CERN with your JAVALOCATION variable pointing to your new jdk installation. At CERNThe first step is to setup an environment variable referencing your java installation. I will call it JAVALOCATION. It has to be set to :Then you have to define correctly your PATH and CLASSPATH variables. Add ${JAVALOCATION}/bin to your PATH and ${JAVALOCATION}/jre/lib/rt.jar:${JAVALOCATION}/lib/dt.jar:${JAVALOCATION}/lib/tools.jar to your CLASSPATH. Take care that I gave here the linux syntax, the windows one should be %JAVALOCATION%/bin and %JAVALOCATION%\jre\lib\rt.jar;%JAVALOCATION%\lib\dt.jar;%JAVALOCATION%\lib\tools.jar. That's all, java should work now. |
This page last edited by SP on May 16, 2002. |