How I fixed the Java out of memory issue on an Amazon AWS instance.

I was trying to get openmeetings working on an Amazon AWS instance today and I kept getting Java out of memory errors. I fixed this with this simple solution I found: http://stackoverflow.com/questions/18078859/java-run-out-of-memory-issue. This fixed my problem and allowed the java application to start with a limited amount of memory. Try this out if you have … Read more

Sample Java code that shows how to use arrays and list the contents of an array in order.

This Java code displays a list of students and their scores and also displays a list of their names in alphabetical order. Use this command to compile this: gcj –main=Employees Employees.java -o hello. /* * My first Java program. * */   import java.util.Arrays;   public class Employees {   public static void main(String[] args) … Read more

How to install the gcj Java compiler on Debian 7.0 and compile a simple program.

This is how to compile a Java source file on Linux with gcj. homer@neo:~/Documents$ gcj –main=HelloWorld HelloWorld.javahomer@neo:~/Documents$ gcj –main=HelloWorld HelloWorld.java This is the source file that I am working with. /* * My first Java program. * */   import java.util.Date;   public class HelloWorld {   public static void main(String[] args) {   System.out.printf("\"Hello, … Read more