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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:06:42+00:00 2026-06-14T03:06:42+00:00

I have a small application written in Java that was tested and ran on

  • 0

I have a small application written in Java that was tested and ran on a JRE_1.6. Now I need to run it against a JRE_1.5. I altered the source code I had to match Java 1.5 requirements and the project compiled fine.

The problem is that it uses a number of precompiled libraries like opencsv-2.3 and those were compiled with Java 1.6, so calling any of their classes results in a java.lang.UnsupportedClassVersionError.
Most of them are com.apache libs + opencsv-2.3 + org.jdom

How can I figure out which libraries exactly need to be replaced? How can I replace the libraries that need it?

Upd: the how can I replace part actually stands for “what can be done if there is no older library?” Is there a way to downgrade a compiled library or do I need to find a similar solution on 1.5 and rewrite the code?

  • 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-14T03:06:44+00:00Added an answer on June 14, 2026 at 3:06 am

    I suggest you look in the manifest for each library for lines like

    Bundle-RequiredExecutionEnvironment: J2SE-1.3
    X-Compile-Target-JDK: 1.5
    Build-Jdk: 1.5.0_22
    Created-By: 1.6.0_21-b07 (Sun Microsystems Inc.)
    

    I would only take the create by if no other option appears.

    The only way to know for sure is to example a class in the library (assuming all classes where built for the same version)

    javap -v -classpath net\sf\trove4j\trove4j\3.0.2\trove4j-3.0.2.jar gnu/trove/list/TLongList | grep version
    
      minor version: 0
      major version: 49
    

    A table of versions are

    major  minor Java platform version 
    45       3           1.0
    45       3           1.1
    46       0           1.2
    47       0           1.3
    48       0           1.4
    49       0           1.5
    50       0           1.6
    51       0           1.7
    52       0           1.8
    

    For more details http://en.wikipedia.org/wiki/Java_class_file

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

Sidebar

Related Questions

I have written a small java application for which I need to obtain performance
I have a small command-line application written in C that acts as a wrapper/launcher
I have written a small .net Windows Forms application. And now I decided to
I have a small application that uses a SharePoint list as the data source.
I have written a java application that sporadically logs events to an SQLite database
I have a small application written in Python using Flask. Right now I'm running
I have a small client/server application, written in C, that needs to authenticate with
I have a small application written in c# as a console app that I
I have written a small application that needs to log in to a website
I have a small application that I have written that uses the MVP pattern

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.