You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Installing Java for JAS3 and org.lcsim

The org.lcsim reconstruction and analysis software requires Java J2SE 5.0, which is also known as version 1.5
(which might confuse you!).

If you known that Java is properly installed on your current machine, then this section may safely be skipped.

JAS3 and org.lcsim should be installed after Java has already been installed.

Java Installation

Download the JDK 1.5 from Sun's Java site and install it.

Java Netbeans Bundle

Another option for setting up Java is the Java JDK 1.5 with Netbeans Bundle, which includes the free IDE Netbeans. Netbeans features code completion, a modular plugin system, and integration with Ant and Maven.

Checking the Installation

Before installing JAS3, you need to check whether Java is installed on your machine.

On Windows

On Windows, go to Start -> Settings -> Control Panel -> Add or Remove Programs.

If you do not see something similar to the following, then Java needs to be installed.

From Command Line

On Linux, open up a shell.

Windows Shell

If you are on Windows, go to Start -> Run, type cmd and hit Enter.

Check that the Java compiler version is correct by typing the following into the prompt.

javac -version

The first line of output should look like this. (The rest of the printout was removed.)

javac 1.5.0

Even if javac was not found, you may just need to set the JAVA_HOME variable or add
JAVA_HOME/bin to the path.

On Windows, go to Start -> Settings -> Control Panel -> System, click Advanced Tab, and then click the Environment Variables button (intuitive, isn't it?).

Do you see JAVA_HOME listed under System Variables on your system?

If not, then make a new environment variable by clicking on New.

To add JAVA_HOME to the PATH on Linux using bash.

export PATH=$JAVA_HOME/bin:$PATH
  • No labels