Re: Spawning Java from C

2012-02-24 Thread Dave Korn
On 24/02/2012 15:07, Eliot Moss wrote: > On 2/24/2012 9:57 AM, Jim Rome wrote: >> Larry Hall (Cygwin cygwin.com> writes: >>> >>> To the OP, run the same from an elevated prompt and these >>> errors should disappear. >>> >> >> I tried it also with windows style paths, both using \\ and / as >> sep

Re: Spawning Java from C

2012-02-24 Thread Eliot Moss
On 2/24/2012 11:13 AM, Jim Rome wrote: That did it, although I think I tried it with no quotes before. I also used Windows paths with / in them. This was really frustrating. Cygwin should have better documentation about issues like this. Glad to be of help. A bunch of this *is* documented, som

Re: Spawning Java from C

2012-02-24 Thread Jim Rome
> Here's the thing I am wondering about: > > In bash, in a " " quoted string, backslash acts kind of as in C and may > need to be escaped (doubled). It can be tricky/painful to find the > right quoting/escaping combination to get what is necessary. In a > ' ' quoted string, you get what you type.

Re: Spawning Java from C

2012-02-24 Thread Eliot Moss
On 2/24/2012 10:56 AM, Jim Rome wrote: Could you post the command line(s) you used? Maybe we can spot something EM Usage: tkfPush port tkf_file_name_path launch_java(t/f) C:\Users\jar>tkfpush 4879 Bar.tkf t Client: WSAStartup() is OK. jar location="C:\Users\jar\Tekdraw2\tekPlot\d

Re: Spawning Java from C

2012-02-24 Thread Jim Rome
> Could you post the command line(s) you used? Maybe > we can spot something EM > Usage: tkfPush port tkf_file_name_path launch_java(t/f) C:\Users\jar>tkfpush 4879 Bar.tkf t Client: WSAStartup() is OK. jar location="C:\Users\jar\Tekdraw2\tekPlot\dist\tekPlot.jar" Client: WSAStartup(

Re: Spawning Java from C

2012-02-24 Thread Eliot Moss
On 2/24/2012 10:38 AM, Jim Rome wrote: Yes, the responder *is* saying that you need to run this as administrator. I can't speak for the difference with MinGW. Eliot Moss I reran this in a Windows 7 command window as an administrator, using the Windows style paths using \\, and still get the s

Re: Spawning Java from C

2012-02-24 Thread Jim Rome
> Yes, the responder *is* saying that you need to run this as > administrator. I can't speak for the difference with MinGW. > > Eliot Moss I reran this in a Windows 7 command window as an administrator, using the Windows style paths using \\, and still get the same result. It cannot find the j

Re: Spawning Java from C

2012-02-24 Thread Eliot Moss
On 2/24/2012 9:57 AM, Jim Rome wrote: Larry Hall (Cygwin cygwin.com> writes: To the OP, run the same from an elevated prompt and these errors should disappear. I tried it also with windows style paths, both using \\ and / as separators with the same results. What does "to the OP" mean? A

Re: Spawning Java from C

2012-02-24 Thread Jim Rome
Larry Hall (Cygwin cygwin.com> writes: > > To the OP, run the same from an elevated prompt and these > errors should disappear. > I tried it also with windows style paths, both using \\ and / as separators with the same results. What does "to the OP" mean? And are you implying it has to be r

Re: Spawning Java from C

2012-02-23 Thread Larry Hall (Cygwin)
On 2/23/2012 3:21 PM, Eliot Moss wrote: On 2/23/2012 12:35 PM, James Rome wrote: I have code that launches Java from C to run a jar file, and creates a socket to communicate between the calling program and the jar file. It works in OS X, Linux, and MinGW on Windows, but not on Cygwin. One can

Re: Spawning Java from C

2012-02-23 Thread Eliot Moss
On 2/23/2012 12:35 PM, James Rome wrote: I have code that launches Java from C to run a jar file, and creates a socket to communicate between the calling program and the jar file. It works in OS X, Linux, and MinGW on Windows, but not on Cygwin. One can definitely spawn Java from C, but every J