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

  • Home
  • SEARCH
  • 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 3758554
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:10:48+00:00 2026-05-19T10:10:48+00:00

My project is build in 1.4.2 JDK. Now it is going to interact with

  • 0

My project is build in 1.4.2 JDK.
Now it is going to interact with a third party jar, build in JDK 1.6

I am getting compatibility problem while using client classes.
Is it possible to resolve it without upgrading my JDK to 1.6 or rebuilding third party jar in 1.4.2

  • 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-19T10:10:49+00:00Added an answer on May 19, 2026 at 10:10 am

    You cannot run a class compiled with JDK 1.6 on previous JDK 1.4 because you will got an java.lang.UnsupportedClassVersionError exception. This is due to Java is not forward compatible, it is just backward compatible (see specification).

    In order to verify it I have installed JDK 1.4.2.19 and JDK 1.6.0.23 and wrote a sample application:

    public class HelloWorld {
        public static void main(String[] args) {
                System.out.println("Hello world!");
        }
    }
    

    Built it with JDK 1.6.0.23:

     ../1.6.0.23/bin/javac HelloWorld.java
    

    And run it with JDK 1.4.2.19:

    ../1.4.2.19/bin/java HelloWorld
    

    Output:

    Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld
    (Unsupported major.minor version 50.0)
          at java.lang.ClassLoader.defineClass0(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
            ...
    

    Solution: You may try to rebuild your third party application with JDK 1.4 if it doesn’t call methods introduced in 1.6 (and 1.5).

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

Sidebar

Related Questions

I can't build my project using jdk 1.7.0 due to following error on NetBeans
I wish to create a zip archive of my target directory (${project.build.directory). using the
I have followed this thread now when i try to build using maven plugin
I am using maven2 to build the java project, when i issue the command
Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java
i'm using teamcity 5.1.5.. trying to build an MSBuild project with an AfterDeploy target
My java project build in jdk 7 . I want to convert it into
From someone's project, I am getting this error: Java Build Path Problems (1 item)
I have checked out a project using Subversive for Eclipse and I am getting
I have a problem while setting up my first Hibernate project. I follow the

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.