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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:46:15+00:00 2026-06-17T09:46:15+00:00

I have a PowerMac and it is giving me bad version number on some

  • 0

I have a PowerMac and it is giving me bad version number on some .jars. I would love to make it seem like I am running Java 6. How would I spoof the version? Let me also say I am running PowerPC and Leopard

  • 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-17T09:46:16+00:00Added an answer on June 17, 2026 at 9:46 am

    The most likely problem is that you have Java 6 JAR files and you are trying to run them on an old Java installation.

    How would I spoof the version?

    The answer to your question is that you can’t. The way to run Java 6 specific JAR files it to use a Java 6 (or later) JRE or JDK.

    The problem is that the format of Java class files has changed, and your installation can’t cope with the new format. And this is not a gratuitous change that you can pretend doesn’t exist. Java 6 (actually Java 5) has support for generic types, enums, annotations and other things. Assuming that the JARs contain code that uses these new language features, an older JRE simply won’t know what to do with them.

    There are two solutions:

    • Upgrade your Java installations to the required level on all machines. This is the best solution … if it is an option … because it means your users will get the benefit of security and bug fixes and performance enhancements. (And progress of your project won’t be held back by the constraint of supporting legacy platforms.)

    • Compile all of your code for compatibility with the oldest version of Java that you still have to use. Either compile on the corresponding old JDK, or on a more recent JDK using appropriate -source / -target / -Xbootclasspath options … as described by the javac manual page.

    The catch with the second solution is that if the source code for the JAR files in question uses recently added Java language features or APIs, then recompiling for the older platform will fail. To fix this you will need to rewrite your code to replace the nice modern stuff with archaic stuff. Not a good solution, IMO.


    The other possibility is that you are seeing corrupted JAR files. This is unlikely, but it can happen if you are using applets or webstart, and the server is delivering error pages instead of JAR files.


    The third possibility is that you simply haven’t configured your Mac’s Java installation’s correctly. Making Java 7 the default should allow you to run everything without class version problems. (Thanks @paulsm4) Note that I can’t help you with that … ‘cos I don’t use Java on a Mac.

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

Sidebar

Related Questions

Have a look at the menu link Produkter on http://marckmann.se/ I would like to
I'm considering starting iOS development as a hobby and would like to save some
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
have defined a Java Interface with the annotation @WebService Compiled the code which went
have numerous tests working, but my actual test of some objects is failing and
Have started working my way through a book called WebGL: Up and Running, which
Have not done this before ( except in java , look how Steve McLeod
Have a long running set of discrete tasks: parsing 10s of thousands of lines
I have an old PowerMac G5 lying around and I was wondering if I
have a class structure like so Permit -> Financial ->ICollection instrumentList Instrument -> Agency

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.