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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:40:09+00:00 2026-06-12T01:40:09+00:00

Possible Duplicate: How to check JRE version prior to launch? Many people want to

  • 0

Possible Duplicate:
How to check JRE version prior to launch?

Many people want to know how to force their program to use a minimum version of a jre, but I would like my program to only run using java 6 and not java 7 (aka maximum of jre 1.6). The reason being that my program needs to use FTP, and java 7 has the dreaded FTP bug.

Is there a way to easily make my application run using 1.6 if the user has 1.7 installed?

Some of the options I have looked at are: launch4j

I am not quite certain that it will solve my problem, other than perhaps bundling the entire jre with my program. Which I don’t think is the most ideal solution.

Can someone help guide me even down the theoretical path as to how this is generally solved/handled?

  • 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-12T01:40:10+00:00Added an answer on June 12, 2026 at 1:40 am

    As suggested in this somewhat related question/answer, use System.getProperty("java.version") to see what version of Java is being used to run the application. With this you can make the application prompt the user that he should use an older JRE.

    As for running the application without path based JRE detection, the main problem is that you can’t be certain where on the user’s system the correct JRE is installed. On Windows there’s two default possibilities, on *nix it might be anywhere.

    If I were you, I’d try to find a custom FTP library that gets around the bug you mentioned to get the maximum security and optimization benefits of the newer versions of Java instead of forcing the user to stay in the past.

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

Sidebar

Related Questions

Possible Duplicate: Check iPhone iOS Version I want to check iOS Version in iOS.
Possible Duplicate: check whether internet connection is available with C# I just want to
Possible Duplicate: How to check if internet connection is present in java? I want
Possible Duplicate: How to check if jQuery is loaded and what version? What is
Possible Duplicate: Is there a way to check if a file is in use?
Possible Duplicate: Check if a server is available I'm writing a program in C#
Possible Duplicate: How to check for undefined or null variable in javascript I want
Possible Duplicate: Check iPhone iOS Version I am trying to setup some code that
Possible Duplicate: Check that an email address is valid on iOS What is the
Possible Duplicate: Check if a variable is empty Simple PHP question: I have this

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.