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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:57:59+00:00 2026-05-26T17:57:59+00:00

Lately I’ve been working on building two tools using Eclipse. I’m printing some messages

  • 0

Lately I’ve been working on building two tools using Eclipse. I’m printing some messages to the console there (System.out.print).
However, I’ve now constructed a .jar file for each tool, which I want to run on a different machine (no eclipse installed). Running this .jar does not provide me with the messages I’m printing.

What is the best way to print messages to the screen from a running .jar file?
For example, how to print:

System.out.print("Results succesfully saved!");

I’ve googled quite a bit, but couldn’t find any results.

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

    System.out.print("Results succesfully saved!"); will work just as fine for a .jar-program. However, it requires the user to run it in a terminal so that he sees the stuff printed to standard output.

    If this is not what you’re after, then perhaps you want to have a look at JOptionPane which has a few static methods to graphically display messages like those.

    This screenshot

    enter image description here

    is for instance produced by this snippet:

    import javax.swing.JOptionPane;
    
    class Test {
        public static void main(String[] args) {
            JOptionPane.showMessageDialog(null, "Results succesfully saved!");
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lately I've been writing some JS code using jQuery and JavaScript as it is
Lately I've been getting these 2 strange error messages in Eclipse. These happen the
Lately I've been using XPathDocument and XNavigator to parse an XML file for a
Lately I have been playing a game on my iPhone called Scramble. Some of
Lately I have been working on OS X. Things were going pretty peachy for
Lately, I've been cleaning up some some C code that runs on an ARM7
Lately I've been wondering if there's a difference between initializing the variables that have
Lately as part of my day job I've been learning IBM Rhapsody and using
Lately, I've been reading some code that has if (! (a == b) )
Lately I have been working with predictive analytics and in many cases my PC

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.