public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gettext util msgfmt error (javac: subprocess failed)
       [not found] <AANLkTinfO9ihI1pgewFGmpDgi6_2oeooms1LduHcgXm4@mail.gmail.com>
@ 2010-07-22 15:25 ` Arian
  2010-07-22 17:14   ` Arian
  0 siblings, 1 reply; 2+ messages in thread
From: Arian @ 2010-07-22 15:25 UTC (permalink / raw)
  To: cygwin

Hey everyone,

I have a .po file I created and I wanted to translate that into a java
ResourceBundle properties file.
There is a util to do that via something like:
msgfmt --java2 -d . messages_fr_FR.po

But i got an error saying to set JAVAC or install gcj...

javac is in my java/bin PATH env variable, and in cygwin I can
standalone call javac fine... just seems like cygwin's msgfmt has
trouble calling it...

I read this tutorial http://xmlguru.cz/2006/10/saxon-gettext which is
only webpage i see related to my problem so i did as the steps said.
I created a wrapper javac.sh file like state and exported JAVAC in my
.bashrc ... I re-ran and got the following message:
msgfmt: /home/ahojat/bin/javac.sh subprocess failed

Not sure whats wrong, i tried pointing to my 1.5 and 1.6 jdk javac.

Anyone can help to get this function working?

Thanks!,
Arian

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gettext util msgfmt error (javac: subprocess failed)
  2010-07-22 15:25 ` gettext util msgfmt error (javac: subprocess failed) Arian
@ 2010-07-22 17:14   ` Arian
  0 siblings, 0 replies; 2+ messages in thread
From: Arian @ 2010-07-22 17:14 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-22 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTinfO9ihI1pgewFGmpDgi6_2oeooms1LduHcgXm4@mail.gmail.com>
2010-07-22 15:25 ` gettext util msgfmt error (javac: subprocess failed) Arian
2010-07-22 17:14   ` Arian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).