i can compile fine with javac, but when i try to compile with gcj i get on every line. Heres an example: $ gcj -c -g -O FloatSum.java FloatSum.java:8: error: Identifier expected. public static Stack<Float> P; ^ FloatSum.java:9: error: syntax error. public static Stack<Float> N; ^ FloatSum.java:10: error: syntax error. public static Stack<Float> P2; ^ FloatSum.java:11: error: syntax error. public static Stack<Float> N2; ^ FloatSum.java:12: error: syntax error. public static Stack<Float> E; ^ FloatSum.java:13: error: . public static class ReducedNumber { ^ FloatSum.java:13: error: . public static class ReducedNumber { ^ FloatSum.java:17: error: . public static class DeflatedNumber { ^ FloatSum.java:17: error: . public static class DeflatedNumber { ^ FloatSum.java:21: error: syntax error. public static void main(String args[]) { ^ FloatSum.java:22: error: Class or interface declaration expected. N = new Stack<Float>(); ^ FloatSum.java:23: error: Class or interface declaration expected. P = new Stack<Float>(); ^ FloatSum.java:24: error: Class or interface declaration expected. P2 = new Stack<Float>(); ^ FloatSum.java:25: error: Class or interface declaration expected. N2 = new Stack<Float>(); ^ FloatSum.java:26: error: Class or interface declaration expected. E = new Stack<Float>(); Thanks for the help