delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_YG,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F469FDF.8010002@cs.umass.edu> |
Date: | Thu, 23 Feb 2012 15:21:51 -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> |
In-Reply-To: | <4F4678CB.7030900@gmail.com> |
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/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 JVM I know of is a *Windows* application, which mean that it wants *Windows paths*, not cygwin-style paths. You may find the cygpath utility useful in scripts run under cygwin, to convert between different styles of path. Java, in particular, wants things like its classpath as a *semicolon*-separate list of *Windows* path names. These generally require suitable quoting if being used in scripts or with bash, since bash interprets semicolcon as separating bash commands, etc. As for the particular errors, I am personally less familiar with using cygrunsrv ... Eliot Moss -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |