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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:00:37+00:00 2026-05-14T21:00:37+00:00

I sent a runnable jar to a friend. He double clicks on it and

  • 0

I sent a runnable jar to a friend. He double clicks on it and it doens’t open it crashes. However my other friend can open it.

I believe the problem is that my first friend has multiple versions of java on their machine and it is using the wrong version on the double click.

How can I have the correct version of java be used to run my jar? I am ok to have my friend do this from the command line.

  • 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-14T21:00:38+00:00Added an answer on May 14, 2026 at 9:00 pm

    He could simply grab the correct version of the java as part of his execution statement on the command line. If, for instance, you are compiling with Java6, he could do something like the following in windows:

    C:\Program Files\Java\jre1.6.0_13\bin\java -jar <myJarFileName>
    

    He would simply run this command wherever the jar file is located. This is assuming, of course, that he has JRE 1.6.0_13 installed – change that out for whatever version he is running. Also, the path will be different for different systems.

    Another options in Windows is that you can specify different versions of Java to be the default through the java configuration in the control panel, if I remember correctly.


    Edit:

    Additionally, you can change the java executable in the command to javaw if you want it to run in the background – i.e. if it is a Swing application primarily, and a console is not required.

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

Sidebar

Related Questions

I have an applet and I can't export it to a runnable jar because
I've successfully sent message to individual user. How can I send message to a
A user has sent me some information that they posted to one of my
A friend of mine sent me this code snippet to celebrate his new baby
i have been sent a directory tree of source code that i want to
I'm experiencing an intermittent problem with a class that extends javax.swing.text.DefaultStyledDocument . This document
Someone sent me a MDF file that was created in SQL 2008. I have
I'm getting dates sent to my application in the following format: yyyy-MM-dd'T'HH:mm:ss.SSS-04:00 The problem
After the client has sent the server and unavailable presence, can it continue to
Essentially I have built a socket server that multiple clients can connect to and

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.