Re: [go-nuts] Executing JAR from Go

2024-04-17 Thread Kurtis Rader
On Tue, Apr 16, 2024 at 11:09 PM Shivli Srivastava wrote: > On Wed, Apr 17, 2024 at 11:37 AM Shivli Srivastava > wrote: > >> java -cp /Users/shivli.srivastava/Downloads/jars/bcmail-jdk15on- >> 159.jar:/Users/shivli.srivastava/Downloads/jars/ >>

Re: [go-nuts] Executing JAR from Go

2024-04-17 Thread Shivli Srivastava
*The class should be written as org.Sign instead of org/Sign.* I tried with both , both are valid options On Tue, Apr 16, 2024 at 11:04 AM Roland Müller wrote: > The class should be written as org.Sign instead of org/Sign. > > Am Dienstag, 16. April 2024 schrieb Kurtis Rader : > > On Mon, Apr

Re: [go-nuts] Executing JAR from Go

2024-04-16 Thread Roland Müller
That my point too. Am Dienstag, 16. April 2024 schrieb Kurtis Rader : > On Mon, Apr 15, 2024 at 10:34 PM Roland Müller wrote: >> >> The class should be written as org.Sign instead of org/Sign. > > Agreed. My point was that the O.P. wrote "org/Sign" in their Go source code and didn't show us the

Re: [go-nuts] Executing JAR from Go

2024-04-15 Thread Kurtis Rader
On Mon, Apr 15, 2024 at 10:34 PM Roland Müller wrote: > The class should be written as org.Sign instead of org/Sign. > Agreed. My point was that the O.P. wrote "org/Sign" in their Go source code and didn't show us the command they ran interactively. There may be multiple problems with the

Re: [go-nuts] Executing JAR from Go

2024-04-15 Thread Roland Müller
The class should be written as org.Sign instead of org/Sign. Am Dienstag, 16. April 2024 schrieb Kurtis Rader : > On Mon, Apr 15, 2024 at 4:02 AM Shivli Srivastava wrote: >> >> When I run the command on my terminal , everything works as fine but running it using exec.Command gives Error: Could

Re: [go-nuts] Executing JAR from Go

2024-04-15 Thread Kurtis Rader
On Mon, Apr 15, 2024 at 4:02 AM Shivli Srivastava wrote: > When I run the command on my terminal , everything works as fine but > running it using exec.Command gives > > *Error: Could not find or load main class org.SignCaused by: > java.lang.ClassNotFoundException: org.Sign .* Show us the

[go-nuts] Executing JAR from Go

2024-04-15 Thread Shivli Srivastava
I created a jar where I want to run the main function of the Sign class . *jar tf DigitalSign.jar* META-INF/MANIFEST.MF org/ org/Sign.class META-INF/ bcmail-jdk15on-1.59.jar xml-apis-1.4.01.jar xercesImpl-2.12.2.jar bcutil-jdk18on-1.77.jar bcprov-jdk18on-1.77.jar bcpkix-jdk15on-1.55.jar