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 8276447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:22:43+00:00 2026-06-08T08:22:43+00:00

I have Java 7 running on my mac: System.out.println(System.getProperty(java.version)); // prints 1.7.0_05 Project was

  • 0

I have Java 7 running on my mac:

    System.out.println(System.getProperty("java.version")); // prints 1.7.0_05

Project was created using

enter image description here

Project properties confirm, i am on Java 7

enter image description here

Default system Java is 7

enter image description here

The following however results in syntax error

public static void main(String[] args) {    
    // Underscores in Numeric Litarals are ok here  
    int i = 11_234;
}

Eclipse is complaining with Syntax error on token "_234", delete this token

  • 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-08T08:22:45+00:00Added an answer on June 8, 2026 at 8:22 am

    On Eclipse’s Project|Properties dialog, there two entities Java Build Path and Java Compiler. The former will tell you what classes are used during the build, and you may have a Java 7 JRE listed there. The latter, however, is the compiler that will be used to compile your code. It is possible to have Eclipse use a Java 6 compiler even with a Java 7 JRE on the build path.

    My guess is that you are using Helios, not Indigo. See Programming Java 7 in Eclipse

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

Sidebar

Related Questions

I am running Mac OSX lion and have a Java project in netbeans where
I have created a google-app-engine java project in Eclipse using Google's Eclipse plugin. My
I want to have a java app running, using a function/method (with as little
I have a Java web app running on Tomcat 7 that is using JDBC
I have problems again with my Mac running Java 1.5.... where do I get
I have a java application (craftBukkit) running in terminal on a mac. I am
I have a Java GUI-based application that writes some diagnostic messages to System.out and
Ok so I have an artificial intelligence system running on my Mac through terminal,
I have a java application running as a windows service using procrun from Commons
I have created a jar file in Eclipse of my Java project in JRE

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.