facebook

"Project not jdk 5.0 compliant"?? Sure it is! [Clo

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #232643 Reply

    bradm
    Member

    Though the only JDK I have installed is 1.5_04, I get a message in a new project I’ve created that it’s not 5.0 compliant when I try to add an enumeration. What can I do?

    #232678 Reply

    Scott Anderson
    Participant

    Brad,

    That says that the default JRE that Eclipse is running with is not your JDK 1.5 installation. Check it at Window > Preferences > Java > Installed JREs. You can add your 1.5 JDK and set it as the default to get the functionality you want.

    #232706 Reply

    bradm
    Member

    Scott,

    The only jdk I have defined in MyEclipse is 1.5_04, and I don’t see any way of making it the default. There are literally no other references to any other jdk.

    #232710 Reply

    Scott Anderson
    Participant

    To make it the default, you just need to add a checkmark next to it in the dialog, but if it’s the only one I’m sure it already is.

    Another thing that might be hanging you up is that Eclipse might be running with some dusty old VM in your windows install. Try this:
    eclipse.exe -vm <path-to-jdk-1.5>\bin\javaw.exe

    That will ensure you’ll run with the VM you want.

    #232734 Reply

    bradm
    Member

    Hi Scott,

    Still no go. Yes, the check mark is next to the (lone) 1.5 jdk. I started eclipse from the command line with your suggested switch, and though it started fine, I was again told that my project wasn’t 5.0 compliant when I tried to add an enumeration. Please advise… something is up.

    #232746 Reply

    Scott Anderson
    Participant

    Ah, navigate to Window > Preferences > Java > Compiler and set the Compiler compliance level to 5.0.

    #232778 Reply

    bradm
    Member

    That’s the ticket! Thank you Scott.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: "Project not jdk 5.0 compliant"?? Sure it is! [Clo

You must be logged in to post in the forum log in