delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/24/11:02:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_TK,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F47B486.7090107@cs.umass.edu>
Date: Fri, 24 Feb 2012 11:02:14 -0500
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Spawning Java from C
References: <4F4678CB DOT 7030900 AT gmail DOT com> <4F469FDF DOT 8010002 AT cs DOT umass DOT edu> <4F470417 DOT 3060105 AT cygwin DOT com> <loom DOT 20120224T155416-441 AT post DOT gmane DOT org> <4F47A7BB DOT 9010304 AT cs DOT umass DOT edu> <loom DOT 20120224T163445-929 AT post DOT gmane DOT org> <4F47B1DF DOT 6090901 AT cs DOT umass DOT edu> <loom DOT 20120224T165425-643 AT post DOT gmane DOT org>
In-Reply-To: <loom.20120224T165425-643@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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\dist\tekPlot.jar"
> Client: WSAStartup() is OK.
> Client: socket() is OK.
> Unable to access jarfile
> "C:\Users\jar\Tekdraw2\tekPlot\dist\tekPlot.jar"
> socket connect failed: No error
> Client: connect() - Failed to connect.

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. So it would be interesting
to see the line that tries to invoke java. You might need to run a
script with -v or -x (or both) in effect to see exactly what bash
is doing ...

EM

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019