4 views

1 Answers

First, get access to the server. You can either use SSH or physically access it. Follow the steps in the article to write a file with the code, but save it as .java instead of .txt. After that, type "javac yourFileName.java" and then "java yourFileName", with "yourFileName" being the actual name of your file. (If a Java compiler isn't installed, this will not work. You can install a Java compiler from Ubuntu's APT repository, but you need administrator rights for that, so you won't necessarily be able to do it yourself.)

4 views