Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8638749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:49:00+00:00 2026-06-12T10:49:00+00:00

My default JRE in Eclipse is JDK 1.7. I also have JDK 1.6 for

  • 0

My default JRE in Eclipse is JDK 1.7. I also have JDK 1.6 for projects that don’t need Java 7. My default compiler compliance level is naturally JDK 1.7, in accordance with the default JRE.

Now, for projects that use Java 6 (configured in Project Properties -> Java Build Path), Eclipse does not automatically use JDK 1.6 compliance under Project Properties -> Java Compiler. Instead, it uses the workspace default 1.7 which leads to the problem described here: Exception in thread "main" java.lang.UnsupportedClassVersionError: a (Unsupported major.minor version 51.0).

Is there a way to configure Eclipse to use the compiler compliance level that matches the chosen JRE (or vice versa) or do I have to manually configure both for all projects that don’t use the default JRE?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:49:01+00:00Added an answer on June 12, 2026 at 10:49 am

    Preferences -> Java -> Installed JREs -> Execution Environments

    There you map installed JVMs to Java language versions (and yours probably maps the Java 6 environment to the Java 7 JVM). Afterwards set your project build path setting to that Execution Environment (not the JRE or workspace default JRE).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im using RAD and its default jdk (\IBM\SDP70\runtimes\base_v61\java\jre\lib\security) and need to find the keystore
I am aware that by default Java does not have the so-called eval (what
Here is what I have: JAVA_HOME=C:\Software\Java\jdk1.5.0_12 (points to JDK 5.0) In Eclipse Installed Runtimes
I use Eclipse with ant scripts, and Eclipse works well with the default JRE
Default JVM uses maximum 1.5 GB RAM/JVM Java application. But my Server have 8
I'm building an Eclipse RCP application against Eclipse 3.7.1 and Java 1.6. I'm also
I'm developing a Java 5.0 application that connects to Websphere Application Server default messaging
To tell the truth, I am quite confused on all these terms (JDK/JRE/Java SDK).
Hi I use Eclipse 3.4 Ganymade which uses JRE 1.4/1.5 alternatively. Now I have
I am using Blackberry plug in for eclipse. Default jre setting is 1.6 I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.