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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:55:28+00:00 2026-06-01T12:55:28+00:00

I have been working on a Java game and I recently wanted to see

  • 0

I have been working on a Java game and I recently wanted to see if others could download and play it. After using Eclipse and making the game into a runnable jar file with the libraries extracted into the project, I had several people download it and try to play. All people had the same problem, the jar wouldn’t open. Either as an applet on my website, or just a desktop application. They would get some class error which when I looked it up online meant that they needed to update their Java version. Is there anyway to make it so that my jar file can be used by most, if not all Java versions?

Problem: Jar file cannot be opened by others. Get class error

Assumption: Eclipse is causing the problem

Other Info: I use jre7 and jdk1.7

  • 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-01T12:55:30+00:00Added an answer on June 1, 2026 at 12:55 pm

    Eclipse by default is probably compiling for Java 1.7. If your users have a lower version of Java, your program won’t be able to run. You need to change the target Java version. In Eclipse,

    1. Right click on your project
    2. Click on “Properties…”
    3. Click on “Java Compiler” (it’s on the side),
    4. Ensure “Enable project specific settings” is checked.
    5. Change all the drop downs that say “1.7” to “1.4” (or the oldest version of Java you want to support).

    Regenerate the .jar and it should work (or at least your users should stop getting a version error).

    When you use a lower version of Java, note that certain language features and classes may no longer be available. Fortunately, you’ll get compiler errors if you accidentally used any of these new features.

    You should also post the exact error your users are getting.

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

Sidebar

Related Questions

I have been working on Eclipse recently. I am fairly new to java programming,
I have been working with Java a couple of years, but up until recently
So I have been working on a 2 player Tic-Tac-Toe game in java that
I have been working on a java simulation game for some time (remaking theme
I have been working in Java/J2ee projects, in which I follow the Maven structure.
I have been working on a Java project for a class for a while
Would a LINQ for java be a useful tool? I have been working on
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have been working with Java and Xml for a few months now, and
I have been working in Java for the past 4 years and I am

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.