alias java='/usr/java/jdk1.6.0/bin/java' alias javac='/usr/java/jdk1.6.0/bin/javac'
Tuesday, October 21, 2008
Alias for updated Java on Linux server
In one of the startup files in your Linux account, you'll want shorthand for the path to the 1.6 Java programs javac and java so that you can use the StdIn and StdOut classes provided by our textbook authors. Add the following lines at the end of file .bashrc, which is in your home directory:
Subscribe to:
Post Comments (Atom)
1 comment:
We can also add
alias jar='/usr/java/jdk1.6.0/bin/jar'
so we can create a jar file using cef.
Post a Comment