Relative Content

Tag Archive for javaprocess

Error when reading a file used by two separate Java processes

I have to implement two player objects on separate JAVA processes. The player objects have to send each other messages back and forth and there has to be a common counter variable between them that should be appended with the message that is transmitted between these objects.

ProcessBuilder cannot run program found in PATH

I’m trying to run npm through ProcessBuilder.start(). However, in Windows at least, whenever I try to start the process without stating the full path of the executable, the invocation fails with “CreateProcess error=2”.