Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java compilation error in Kepler(the method printf(String, Oject[]) in the type PrintStream is not applicable for the arguments (String, double))
Java compilation error in Kepler [message #1234185] Tue, 21 January 2014 12:30 Go to next message
Java Lover is currently offline Java LoverFriend
Messages: 2
Registered: January 2014
Junior Member


the following snippet is not accepted in Eclipse (Kepler) on Mac (Jre 7u51) but works okay on PC (jre 7u51)

double classAverage = 7.8;
System.out.printf("Class Average is %f\n", classAverage);

Re: Java compilation error in Kepler [message #1234228 is a reply to message #1234185] Tue, 21 January 2014 13:51 Go to previous message
Java Lover is currently offline Java LoverFriend
Messages: 2
Registered: January 2014
Junior Member
I fixed it. I have 1.6 and 1.7. I had to set the Java execution environment explicitly to Java SE 1.7. It was pointing mistakenly to CDC1.0/Foundation...
Previous Topic:Error: Could not find or load main class org.apache.poi.dev.OOXMLLister
Next Topic:Java 7 and Eclipse
Goto Forum:
  


Current Time: Wed Apr 24 21:31:33 GMT 2024

Powered by FUDForum. Page generated in 0.07475 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top