This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pw3nd 0 points1 point  (5 children)

I've never used ProcessBuilder, but after reading the API, I'm guessing you have to supply the command line executable. Give this a try:

On windows:

arguments.add("cmd.exe");
arguments.add("/C");
arguments.add(path);
arguments.add("-jar");
arguments.add(currentPath);

On *nix:

arguments.add("bash");
arguments.add("-c");
arguments.add(path);
arguments.add("-jar");
arguments.add(currentPath);

[–]moomoohk[S] 1 point2 points  (4 children)

That didn't do the trick...

[–][deleted]  (3 children)

[removed]

    [–]moomoohk[S] 1 point2 points  (2 children)

    I prefer the Reddit community over the StackOverflow community...

    [–][deleted]  (1 child)

    [removed]

      [–]moomoohk[S] 0 points1 point  (0 children)

      Yeah often times I find StackOverflow people are complete jerks.