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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:41:04+00:00 2026-06-16T10:41:04+00:00

I have a Java program that I have been working on. I would like

  • 0

I have a Java program that I have been working on. I would like to show it to my girlfriend, who would have no clue as to how to work with Java, and make it easy for her to do so. I understand the first step is to compile it to .class ‘s from the command line, but after that I am clueless.

I would be interested in finding out how to do this both for Windows and Mac OS (I am on a Mac, along with my girlfriend, but my school uses Windows computers).

I have been on Oracle and seen their demos, they download as .jnlp, is that a step in the right direction?

And specifically, I am looking for a “file” of some sort that is simply downloaded and launched, no terminal involved (maybe a file with a command line within?).

  • 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-16T10:41:05+00:00Added an answer on June 16, 2026 at 10:41 am

    Launching a Java program via double click
    ..seen .. demos, they download as .jnlp, is that a step in the right direction?

    The title and that quote typically represent two different ways to launch Java desktop apps.

    1. “download as .jnlp” That is the ‘deluxe’ version, known as Java Web Start. It is a little trickier for the developer (you) but very easy for the user (your friend).
    2. “Launching a Java program via double click” is more commonly associated with an executable Jar. (Although JWS also supports the ‘double click’ – but with menus and shortcuts.)

    Either strategy will work on OS X, Windows or *nix, but the first has JRE versioning (making sure the end user has a JRE, and it is recent enough to run the code) assisted by scripts, and many other ‘bells and whistles’.

    Java Web Start

    • JWS apps. typically deployed from a web page or server accessible to the user machine, so your friend ‘surfs on over’ to the link you sent her to ‘Download here’.
      • The moment she arrives at your web page, the deployJava.js will check her PC has a suitable minimum version of Java to run the app. If not, she will be guided through a process to get it.
      • When the JRE is confirmed (which happens invisibly for those with a later JRE) the script writes a link in the web page that by default is a button.
        enter image description here
    • The user clicks the button and the JWS client (part of Java) will read the JNLP and begin to install the app.
    • If the app., requires permissions extended beyond the default sand-box, the user will be prompted as to whether to allow the code to run. See Appearance of Java Security dialog for more examples like:

      If the user chooses Run ..
    • The app. will be loaded and appear on-screen (possibly along with desktop shortcuts and start menu being added).
    • To launch it the second and subsequent times, the user double clicks the desktop shortcut or activates the menu item. This is how Starzoom (which has an icon defined in the JNLP) appears in Windows 7.
      enter image description here

    Executable Jar

    Another lesser alternative is an executable-jar.

    It uses a manifest.mf in the Jar that specifies the main class.

    While being a lesser experience for the end user, it is also simpler for the developer – a trade off that might come in handy for limited distribution.

    • Requires a suitable version JRE installed.
    • The user obtains the Jar from whatever source (USB, Bluetooth, web site etc.) and saves it anywhere on their machine that is convenient.
    • To launch it, the user double clicks the Jar.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java program that is running in the background(Windows). I would like
I have been working on a Java program that generates fractal orbits for quite
I have a java program that will work with a variety of Java Beans.
I have been working on a Android Web Services program that uses a number
I'm working on a Java/Groovy program. I have a double variable that holds a
I have a Java application that I've been working on and I just realized
I have been writing a Java program - Specifically a Bukkit plugin, although that
i have been trying to create a little java program that all it does
So I have been trying to write a java program, that involves Threads. It
This c++ program I have been working on is generating runtime errors that involve

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.