Thank you all so much for your help - What it turned out to be was the Kaffe virtual machine that was in my path before the JDK. It was when I did java -version to check it was 1.3.1 that I realised.
Oh well, silly me.
Thanks again.
The actual code is unimportant as there is nothing wrong with it - it compiles fine on my windows box. The issue is really about jdk1.3.1 on a redhat7.1 setup. But you can have it anyway:
//1.3
import java.util.*;
public class ProblemSolved {
public static void main(String[] args) {...
I haven't been programming java for that long, but I am facing some very strange problems.
I am following suns Java tut and several of the sources that they give to you as examples ( or even as solutions to problems) don't compile. Now I doubt that Sun would be so careless as to make a mistake...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.