[go-nuts] Re: Executing JAR from Go

2024-04-15 Thread Tamás Gulácsi
Another possible error is not setting the CWD (cmd := exec.CommandComntext(); cmd.Dir = `the-dir-where-DigitalSign,jar-is`). Tamás Gulácsi a következőt írta (2024. április 16., kedd, 6:20:50 UTC+2): > What is the _working_ command line? > Ain't something like ```java -cp ... -jar DigitalSign.jar

[go-nuts] Re: Executing JAR from Go

2024-04-15 Thread Tamás Gulácsi
What is the _working_ command line? Ain't something like ```java -cp ... -jar DigitalSign.jar org.Sign``` ? Shivli Srivastava a következőt írta (2024. április 15., hétfő, 13:04:28 UTC+2): > this is my code > > func runCommand(ctx context.Context) (string, error) { > > if JVMFound(context.Backgro

[go-nuts] Re: Executing JAR from Go

2024-04-15 Thread Shivli Srivastava
this is my code func runCommand(ctx context.Context) (string, error) { if JVMFound(context.Background()) { jarPath := "/Users/shivli.srivastava/Downloads/jars/bcmail-jdk15on-159.jar:" + "/Users/shivli.srivastava/Downloads/jars/bcpkix-jdk15on-155.jar:" + "/Users/shivli.srivastava/Downloads/jars/b