delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/22/11:49:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_SPEC_LEO_DOLLARSa,TW_GF,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTilf_99M0_oqdg6UMzO_lNWkRTxamuwiEjss81Gt@mail.gmail.com>
References: <AANLkTinfO9ihI1pgewFGmpDgi6_2oeooms1LduHcgXm4 AT mail DOT gmail DOT com> <AANLkTilf_99M0_oqdg6UMzO_lNWkRTxamuwiEjss81Gt AT mail DOT gmail DOT com>
Date: Thu, 22 Jul 2010 11:49:42 -0400
Message-ID: <AANLkTimyjPmRj8qVGZCzmdtMe2YnEqktv8aq_mYikUDl@mail.gmail.com>
Subject: Re: gettext util msgfmt error (javac: subprocess failed)
From: Arian <armyofda12mnkeys AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

I got closer to my problem maybe someone can beat me before i find solution...
so when javac.sh gets called, the file below is executed:

#!/bin/sh
/cygdrive/c/Program Files/Java/jdk1.5.0_22/bin/javac.exe $1 $2 $3
`cygpath -w -p $4`

if i try to just call /home/ahojat/bin/javac.sh on a java file to see
if it forwards it correctly like so:
/home/ahojat/bin/javac.sh ClassTest.java
...
It says:
/home/ahojat/bin/javac.sh: line 2: /cygdrive/c/Program: No such file
or directory

I realized i needed to add a \ because of the space in "Program
Files"; so java.sh file becomes:
/cygdrive/c/Program\ Files/Java/jdk1.5.0_22/bin/javac.exe $1 $2 $3
`cygpath -w -p $4`

But now when just running simple compilation test on ClassTest.java again says:
msgfmt: /home/ahojat/bin/javac subprocess failed

Frustrating :(

--
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