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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:37:10+00:00 2026-05-27T17:37:10+00:00

So I built my program blah blah blah. In the dist folder, I have

  • 0

So I built my program blah blah blah.

In the dist folder, I have my .jar, obviously, and the other dependencies the lib folder.

So I do javaw -jar name.jar and it runs perfectly fine, however, it has the cmd.exe box still there. I do the @echo off and it won’t print anything, but it still shows the black box.

So basically, how can I run this without anything coming up?

Further, I can easily make a shortcut, have the user put it on their desktop or w/e. But how can I have it so that the user double clicks and it runs (Like an .exe)?

Further more, how does this work on Mac/Linux? I don’t use Mac, and rarely use Linux, so I don’t know how this all works.

If you have any links or google searches, that works. I couldn’t find anything for about an hour/10+ searches, so I’m giving up hah.

  • 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-27T17:37:11+00:00Added an answer on May 27, 2026 at 5:37 pm

    Q: So basically, how can I run this without anything coming up?

    A: Use “javaw -jar ” instead of “java”.

    On Windows, you have several choices:

    1. Write a .bat file that calls “start javaw -jar myprog.jar”

    2. Instruct the user how to set their filetype associations in Windows Explorer (so that double-clicking a .jar automatically invokes “javaw”)

    3. Etc

    Here’s a good link that covers both Windows and Linux:

    http://www.wikihow.com/Run-a-.Jar-Java-File

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

Sidebar

Related Questions

We have a custom built program that needs authenticated/encrypted communication between a client and
I'm revisiting an ID scanner station program we built ages ago and I have
I have built a program in Microsoft Visual Studio 2005 and it works fine.
I've built this program to read a user name from a file. It checks
I am working on a program built in MFC. I have this weird situation
I have built a .cpp program in order to write some content to a
I have a WPF program built in C#, and part of it's function is
i built a program that hooks the keyboard and when some hotkey pressed it
I recently built a program that parses a remote file from \some_server\c$\directory\file.xls and it
I've just built a VS C++ 6.0 program using VS 2008. When I attempt

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.