Jump to content

Programming On Redbrick: Difference between revisions

m
Line 29: Line 29:
==Compiling and Running Java Programs==
==Compiling and Running Java Programs==


In order to use Java, first login to Deathray, like so:
ssh deathray
If you are prompted for a password, this is your normal RedBrick password.


The Java compiler on redbrick is called, unsurprisingly, javac. Compiling Java programs is a little more complex than compiling C programs as you need to have two environment variables set, JAVA_HOME and CLASSPATH. To see what these are set to, at the prompt type :
The Java compiler on redbrick is called, unsurprisingly, javac. Compiling Java programs is a little more complex than compiling C programs as you need to have two environment variables set, JAVA_HOME and CLASSPATH. To see what these are set to, at the prompt type :