dimanche 12 février 2017

C# Start JAVA process failed - StackOverflowError

Vote count: 0

I'm trying to start JAVA process from C#.

var processInfo = new ProcessStartInfo()
        {
            FileName = "java",
            Arguments = "-Xss512k -jar vnu.jar -jar some_file.html",
            RedirectStandardError = true,
            RedirectStandardOutput = true,
            RedirectStandardInput = false,
            CreateNoWindow = true,
            UseShellExecute = false
        };
var proc = Process.Start(processInfo);

The java is trying to run the HTML5 Validator JAR, but it failed with message:

StackOverflowError while evaluating HTML schema.
The checker requires a java thread stack size of at least 512k.
Consider invoking java with the -Xss option. For example:
   java -Xss512k -jar ~/vnu.jar FILE.html

Any idea what is wrong?

asked 39 secs ago

Let's block ads! (Why?)



C# Start JAVA process failed - StackOverflowError

Aucun commentaire:

Enregistrer un commentaire