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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:46:25+00:00 2026-05-25T12:46:25+00:00

I am trying to run this example but it is giving me Bad version

  • 0

I am trying to run this example
but it is giving me “Bad version number in .class file…” error. i’m using jdk version 1.6 and example asks to use jdk 1.5. java should support downward compatibility. how can i run the example with jdk 1.6?

  • 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-05-25T12:46:25+00:00Added an answer on May 25, 2026 at 12:46 pm

    There’s a subtle trap here that many new folks fall into. Sometimes — often, actually — you may have a copy of java.exe from an older JDK installed on your machine, appearing early in your path, that you don’t know about. You can get into the situation where you compile classes with your shiny new JDK 1.6 compiler, and then try to run them with the old java.exe, and get the error mentioned here. If that old java.exe‘s location is earlier on your path than the JDK bin dir, then you’ll find the compiler from the command line, but not the right version of java.exe itself.

    The extra java.exe was often installed by an old installer for the Java Plug-In — the thing that lets you run applets in your web browser. The rogue java.exe is likely in your WINDOWS directory, or some variant (this is a peculiarly Windows-centric problem).

    If you’ve installed JDK 1.6 including the Java plugin, then you can simply delete the copy of java.exe in your WINDOWS directory. If you don’t want to do that, you should change your path so that the JDK’s bin directory is before WINDOWS.

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

Sidebar

Related Questions

I am trying to run this SQL from ASP.NET 2005 but am getting an
I am getting this error when trying to run internet information services on a
A buddy of mine has been getting this error mesage when trying to run
I am trying to run this example http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/doc/PoolingDataSourceExample.java?view=markup but somehow I am not able
I am trying to run this in Chrome/Firefox Console but not having any luck.
I'm trying to update a file in an existing jar (in this example antlr)
I'm trying to run this Perl script but it is not running as required.
I'm trying to upload images with Uploadify but I run into IO error. I
I'm trying to run this example: https://github.com/larsgeorge/hbase-book/blob/master/ch03/src/main/java/client/PutExample.java , from this book: http://ofps.oreilly.com/titles/9781449396107/ , on
I am trying to run this dreadfully simple command in Bash java -cp nasa-top-secret.jar

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.