Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Eclipse Compiler Level Tuning

  1. #1
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Eclipse Compiler Level Tuning

    Hey Guys and Girls

    Just a quick question, as I cannot find any info myself - when using Eclipse, lets say I want to use the function

    System.out.format(...);

    Without having to mess around with the compiler settings for the current project, the code will not compile.
    However, by changing the default (which is V1.4) to V7 it will compile. This may seem very small of a gripe
    but it does become a pain when I have to keep changing the version with each new project.

    Oh and btw - the same problem with

    System.out.printf( ''' );


    My question is - is there an option in Eclipse to permanently set the compiler
    setting to V-7 ? I cannot find out how to do it in the Preferences menu. Is there something
    I am missing?
    Any help greatly appreciated.

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Eclipse Compiler Level Tuning

    What did you find when you searched "eclipse set compiler compliance level"?

  3. #3
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: Eclipse Compiler Level Tuning

    Quote Originally Posted by GregBrannon View Post
    What did you find when you searched "eclipse set compiler compliance level"?
    Hey Greg

    Thanks for the speedy reply. I checked again under the auto search and it came up this time (maybe it was begging slow.)
    I had to keep clicking "Apply" because the software was not responding Grrrr.

    I set it under the preferences now under Preferences -> Java Compiler -> Compliance Level. Now set to 7! Yay!

    Thank you for the help

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

Similar Threads

  1. Replies: 2
    Last Post: December 16th, 2013, 04:36 PM
  2. Replies: 0
    Last Post: October 14th, 2013, 08:30 PM
  3. Class level Lock vs Object level lock
    By hs82 in forum Java Theory & Questions
    Replies: 0
    Last Post: October 14th, 2013, 10:17 AM
  4. Replies: 2
    Last Post: October 30th, 2011, 06:37 PM
  5. setting the compiler for eclipse mac os x
    By etidd in forum Java IDEs
    Replies: 2
    Last Post: January 29th, 2010, 10:18 AM