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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:35:28+00:00 2026-05-24T02:35:28+00:00

My application is used to Launch a Java process and manage it (restart it

  • 0

My application is used to Launch a Java process and manage it (restart it if it crashes, provide a tcp server to issue remote commands, etc). With my RCON server (remote console) it works fine. However, when I send the command to the Java process, I would like to take the reply (the Java process actually replies in StandardError instead of StandardOutput) and show that response back to the person remotely connected.

My problem is since their input is sent through my RedirectedStandardInput function, how can I make sure I get the right reply from RedirectedStandardOutput?

Would the best bet be to have some sort of global flag that means “RCON command was sent, next message received through Standard Error should be used for reply”? I guess my main concern is that with the Java process being a game, using this method, it might pickup something like “Player has joined the game” instead of what the response to the command actually is. The response to a command is visually instant, but I don’t know if it is or just has a small delay.

  • 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-24T02:35:30+00:00Added an answer on May 24, 2026 at 2:35 am

    This depends on how the Java application is implemented. But if we don’t know anything about it, we have to assume it can be multi-threaded. But that means that messages that aren’t responses to your commands can appear between you send the command and the response.

    If that’s the case, you have several solutions:

    1. If you know the possible messages, parse them to find out whether it’s a response or an unrelated message.
    2. If you can change the Java application, change it so that it uses some better protocol for communication.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used this line to execute a python script from a java application: Process
I'm debugging a jnlp application, and I used to be able to remote debug
I have a desktop application and I want to launch that application using JAVA
I have a homepage application, it was used to launch individual applications, and the
In my code, I have used : Application.launch(MyDesign.getClass(), null); to run a UI of
Imagine a DOS style .cmd file which is used to launch interdependent windowed applications
Our application used to make use of a common base form that all forms
I have an application used by pretty tech-savey people and they want small island
I develop a critical application used by a multi-national company. Users in offices all
I am currently building an internal web application used in a factory/warehouse type location.

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.