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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:41:53+00:00 2026-05-24T05:41:53+00:00

I am wanting to run a .jar file and display the output (I’m assuming

  • 0

I am wanting to run a .jar file and display the output (I’m assuming I would use a rich text box) however I also want to have a text box that will allow me to send commands to the running jar file as if it were running in a command prompt window.

Either this or embedding the command prompt would be ideal. I have messed around with code and have never got it to work.

I would also like to detect certain messages that the jar file returns, for example if a certain command is ran it will display a message depending on whether or not that failed, is there a way to read everything that get returned and then have an event happen if it detects this certain string?

How To: Execute command line in C#, get STD OUT results I have been looking at things such as that, when I say I have messed around with code, I have tried the code given in these examples (changing small parts) they never worked.

To summarise:
– I want to run a jar file that obviously displays it’s output in a command prompt.
– I want to hide the command prompt and display it’s output in a rich text box.
– The jar file will return string such as ‘user 1 has logged in’ I want to update a labels text everytime that happens.

  • 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-24T05:41:53+00:00Added an answer on May 24, 2026 at 5:41 am

    You should have a look at the ProcessBuilder and Process classes. They allow to run command line programs and read/write in the process streams.

    Also, if your jar is known in advance, why no simply using the class as if it would be in a library and use the exposed APIs?

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

Sidebar

Related Questions

Lately, I've often found myself wanting to run some command on the output of
I am wanting to display a text field stating that my listview is empty
I am wanting to run a web scraping script on a server. The current
I'm wanting to run AJAX to get some URL data, build an object from
I'm wanting to extract a zip file loaded with images into memory in some
I am wanting to display one list element at a time. Ideally, the first
I'm wanting to use a php variable as the destination email for Amazon SES
Apologies for the title, I am wanting to run a query like so: $query
I use ant for creating .jar files in Eclipse. Works great. I have a
I don't understand what this code is doing, I'm wanting to run a command

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.