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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:44:25+00:00 2026-06-12T13:44:25+00:00

On the JavaDoc for ProcessBuilder it states The methods that create processes may not

  • 0

On the JavaDoc for ProcessBuilder it states

The methods that create processes may not work well for special processes on certain native
platforms, such as native windowing processes, daemon processes, Win16/DOS processes on
Microsoft Windows, or shell scripts.

My main question is what about ProcessBuilder does not work well with daemon processes? What about ProcessBuilder doesn’t lend itself to being an acceptable way of launching these types of applications?

Thanks!

  • 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-12T13:44:27+00:00Added an answer on June 12, 2026 at 1:44 pm

    My guess (based on the comments I found in code grep) is that the issue is with the fact you have to handle the streams of the process and that this handling might be an issue.

    The methods that create processes may not work well for special
    processes on certain native platforms, such as native windowing
    processes, daemon processes, Win16/DOS processes on Microsoft Windows,
    or shell scripts. The created subprocess does not have its own
    terminal or console. All its standard I/O (i.e. stdin, stdout, stderr)
    operations will be redirected to the parent process through three
    streams (getOutputStream(), getInputStream(), getErrorStream()). The
    parent process uses these streams to feed input to and get output from
    the subprocess. Because some native platforms only provide limited
    buffer size for standard input and output streams, failure to promptly
    write the input stream or read the output stream of the subprocess may
    cause the subprocess to block, and even deadlock.

    It may also be related to the fact that Process is an abstract class and every JRE/JDK carries with it it’s own platform dependent process implementation (e.g. UNIXProcess, WindowsProcess etc.) Some operating systems might simply have limitations related to opening processes which Java cannot cover in its documentation.

    Again – this is just a guess, the code does’t reveal much.

    From my experience (both on *nix systems and windows) – your code needs to be platform aware most of the time in how you construct your command line, how you provide arguments (either in the arguments parameter or in the command line) and how you build the environment of the spawned process (inherit your process’s values or create on of your own). It is more a game of trial and error in any case.

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

Sidebar

Related Questions

The javadoc for SimpleDateFormat states that SimpleDateFormat is not synchronized. Date formats are not
NumberFormat JavaDoc says: Number formats are generally not synchronized. It is recommended to create
MIdlet's class javadoc states that MIdlet.destroyApp() will be called if MIdlet.startApp() throws a RuntimeException
The JavaDoc for WebDriver.getPageSource() states that Get the source of the last loaded page.
my JavaDoc doesn't work when I have a code example with an annotation. Any
If you've used javadoc and then come to doxygen, you may know what I
In the JavaDoc of ActivityUnitTestCase it says: Do not call from your setUp() method.
I have a javadoc doclet that requires an additional jar file to be on
This FileInputStream.available() javadoc says: Returns an estimate of the number of remaining bytes that
The javadoc for org.joda.time.format.ISODateTimeFormat.dateTime() is: Returns a formatter that combines a full date and

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.