Thread: printf Problem
View Single Post
Old Jan 12th, 2007, 12:46 PM   #9
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
IIRC, Eclipse defaults to Java 1.4 compatibility. In other words, even if you have Java 5 on your machine, by default it will compile your code as if it were for 1.4. This is why printf is not working for you.

Here is a page a quick google search pulled up. Assuming Java 5 is the only version of Java installed on your machine, then this step is the only important one:
Quote:
- Set the Eclipse>Preferences>Java>Compiler level to 5.0
If you set that option, your code should compile.
Arevos is offline   Reply With Quote