Ok, I found out that the problem is eclipse. It is using a default JRE called java-1.5.0-gcj-4.3-184.108.40.206. Surprisingly, this jre doesn't seem to contain the Scanner class (???). I have JRE 1.6 installed, but somehow eclipse is not capable of finding it. Neither can I find it, when I try to change to build path for individual projects.
When compiled from command line, all my applications work fine with no problems, but I can't get eclipse in Linux to understand that it should use the friggin JRE 1.6, which is the JRE installed in my system, and not some of it's own default JRE. I would still like to use an IDE for my java-projects, cause they make the building of projects so much easier.
In windows, this all works fine, which is pretty depressing, cause otherwise Linux provides so many great tools that I would like to use for my projects. I wouldn't want to transfer all my java projects in windows. Are there experienced Linux users who could help me solve this problem?
If you can help me, I'll really be overjoyed
It's just stupid and frustrating that I can't get eclipse to co-operate with my system. I also tried NetBeans and it compiles my applications, but doesn't run them. I only get an output saying something like 'compiling succesful'. Sigh...