Hi,
I made a simple class which compiles fine using jdk 1.5.9 on windows. Now I try compiling on linux (not sure how to check jdk version on here), but I'm getting many errors. For instance, I have something like:
import java.util.ArrayList;
class TreeNode
{
ArrayList<TreeNode> m_Children = new ArrayList<TreeNode>();
}
I'm getting errors like:
"The type ArrayList is not generic; it cannot be parameterized with arguments <TreeNode>"
"Syntax error, parameterized types are only available if source level is 5.0"
Any idea what those errors mean? I don't understand why the app compiles and runs fine under a windows JDK distribution. It's very simple test application, maybe like 200 lines long!
Thanks for any help.
Start Free Trial