Date: Wed, 3 Mar 2010 14:45:49 -0500
From: Mark Lacy
To: naasc-cv
Subject: [Naasc-cv] how to get the ALMA OT to work on NRAO linux machines

I thought I should send this round to everyone just in case....

The current version of the OT essentially only works under patch 15 of Java 1.6 (not patch 18, or most previous patches). This is installed at NRAO, but an earlier patch is in your default path. The easiest way I found to get it to work was to edit the startup file and put in the path to the correct patch explicitly, i.e. in line 4 of ALMA-OT.sh change "java" to "/opt/local/java/jre1.6.0_15/bin/java" as in the example below. Note that aliasing the java command to the correct patch appears not to work, even though "which java" will appear to give the correct version.

This is likely to change as the development version changes, but NRAO do appear to keep the java patches up to date, so they probably will exist somewhere. You also need to be aware that some vendor supplied versions of Java (e.g. redhat) will differ from the "official" Sun version and may also give problems.

#! /bin/bash
INSTALLDIR=/users/mlacy/OT
mkdir -p $HOME/.almaot
/opt/local/java/jre1.6.0_15/bin/java  -cp $INSTALLDIR/lib/jACSUtil.jar -Djava.system.class.loader=alma.acs.classloading.AcsSystemClassLoader-Dacs.system.classpath.jardirs=$INSTALLDIR/lib  -Djava.util.logging.config.class=alma.obsprep.util.LoggingSetup-Dalma.obsprep.PrintStackTrace=true-Xmx512m alma.obsprep.ot.gui.toplevel.ObservingTool 2>$HOME/.almaot/ot.log 1>&2


-- Main.ToddHunter - 2010-03-05
Topic revision: r1 - 2010-03-05, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback