On this page we provide help for a number of common problems encountered with the OT. If you have any further questions or discover a new bug, please contact us via the ALMA Helpdesk. Please note that the following advice assumes that the user is running an up-to-date version of the OT.
Should I download the JRE or the JDK Java distribution?
Users of the OT should only need to download and install the Java Runtime Environment, or JRE for short. The JDK is only for developers and is a bigger installation. A version of the JRE appropriate to your operating system can be obtained from the official Java website at 'www.java.com'. Make sure that you install Java 7 or 8 - the OT will not work with earlier versions.
How do I install Java on a Mac?
On a Mac, the JRE download will consist of a .dmg file that should be opened as usual. This will do most of the installation for you, but it will not set the path to the Java installation, which must therefore be done manually. On a Mac, the java executables should reside in '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/' and this directory should be added to your path. As the name of that directory implies, all browsers running on a Mac should automatically pick up the necessary plugin.
Important: Java 7 can only be installed on Mac OS versions 10.7.3 (Lion) and later - earlier versions must therefore be upgraded.
How do I install Java on Linux?
On a Linux system, the user will be able to choose where the JRE is installed. Afterwards, the installation's 'bin/' directory should be added to the user's PATH. In addition, the internet plugin must be installed manually. This is done by, in your browser's plugins directory, creating a symbolic link to the file 'libnpjp2.so' which can be found inside the JRE directory tree (probably in 'lib/i386/'). In the case of Firefox, the 'plugins' directory is probably '$HOME/.mozilla/plugins'. Finally, you should also check to see that your browser is configured to use the correct version of Java Web Start. This can be important as some versions of Linux come pre-installed with 'Open JDK' versions of Java (e.g. 'Iced Tea') which we do not recommend. For Firefox, which version is being used can be set in the Applications tab of the Preferences menu - it should point to the 'javaws' executable in the JRE's 'bin/' directory.
What version of Java am I running?
If the above instructions for installation have been followed, the version being used by the OT can be shown via the command line i.e.
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
As the Web Start version of the OT explicitly uses the internet, perhaps a more direct test of which Java version is being used is done using a browser. Oracle host a web page which will inform you of the version: 'http://www.java.com/en/download/installed.jsp'.
Finally, the version can be viewed using the Java Console. On a Mac this is available via the System Preferences menu, but for all installations is available as an executable ('ControlPanel') in the 'bin/' directory of the Java installation. If this directory has been added to your path, just typing this at the command line should work.
The command-line Java version is different to the browser version!
It can happen that the Java version reported using 'java -version' and by the browser are different. This should only happen on a Mac as this allows both a JRE and a JDK to be installed. The JDK also contains a JRE and it is probably this one that is being used for the command line, whilst the stand-alone JRE is used by the browser. As only the browser JRE is automatically updated, the version numbers can get out of sync. In principle, having different versions of a JRE installed is not a problem, so long as both are kept up to date. However, it is not necessary to install a JDK in order to run the OT.
Should I install the Web Start or the tarball version of the OT?
We definitely recommend that you install the Web Start version as this will automatically check for any updates each time it is started, and automatically download and install these if available. Also, each time the Web Start version is run, your system will check to see if a Java update is available and, if there is, install this. The only reason to install a tarball version is if you encounter Java problems, such as having a Mac with no possibility to upgrade to an OS version beyond 10.6. For this case we provide a version of the OT that comes with its own JRE.
Nothing happens when I start the Web Start OT on my Mac!
What is happening here is probably due to a Mac feature called 'Gatekeeper'. In Mavericks and Mountain Lion, this defaults to only allowing applications to run that have either been downloaded from the App Store or have an Apple Developer ID. As the OT does not have one of the latter, a Mac will force the user to manually open the application. This is done by opening the downloaded .jnlp file via the Download window, opening it with the Finder and right-clicking to access the 'Open With' option. Alternatively, Gatekeeper can be turned off via the 'Security & Privacy' System Preferences menu item: select 'Anywhere'.
Do I always have to start the OT from the Science Portal?
No, this is not necessary. It should normally be the case that installing the Web Start OT will cause a shortcut to be created on the user's Desktop. Starting the OT can henceforth be most easily accomplished by double-clicking on this.
My Java installation is not updating automatically
This probably means that you are running on a 32-bit Linux operating system. For some reason, automatic updates for Linux are only enabled on 64-bit installations. In fact, the update tab in the Control Panel is completely absent. Upgrading Java on a 32-bit Linux system therefore requires that the JRE be downloaded and installed manually each time an update is released.
What do I do if the OT fails to start?
Sometimes, the Web Start version of the OT will fail to start for no apparent reason whatsoever. Actually, simply trying again will often fix the problem. If this doesn't work, it may be necessary to delete the existing installation and re-install from scratch.
How do I delete the Web Start version of the OT?
This is done via the Cache Viewer in the Control Panel. The most convenient way to bring this up is via the command line i.e.
The OT GUI is taking forever to start!
What may have happened here is that the GUI that requests the user's password has got lost under other windows.