Re: Issue on output when using javac or scalac under emacs

2020-08-26 Thread Eliot Moss

On 8/25/2020 11:51 PM, Eliot Moss wrote:

Agreed that / vs \ is sometimes no problem. I do know that Windows Java really 
wants ; and not : when giving multiple path names ... EM

Sent from my iPhone


On Aug 25, 2020, at 10:50 PM, Brian Inglis  
wrote:

On 2020-08-25 18:36, Eliot Moss wrote:

Dear Luc
You should be aware that while Cygwin can invoke Java, the Windows Java still
expects _Windows-style_ arguments, including Windows paths, etc.

For example, not a/b/c:d/e but 'a\b\c;d\e" for a path.


Just because you're using Cygwin, the installed Java is not "magically"
transported to the Linux world!

You may also run into issues around line endings (CR/LF vs LF only, and so 
forth).


Many Windows APIs and programs accept either path separator and in such cases
there are seldom issues as long as the paths are not too long e.g. try:

$ /proc/cygdrive/c/Windows/System32/icacls path/with/slash/delimiters

and many programs, including editors and terminals, do a good job of adapting to
line endings, including mintty and less.


Apologies for the top-posting.  Not sure my phone supports any other way, but if I end up wanting to 
post from my phone, I will see what I can do!   Eliot Moss

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


Re: [cygwin] Issue on output when using javac or scalac under emacs solved

2020-08-26 Thread Eliot Moss

On 8/26/2020 6:09 AM, Luc Henninger wrote:

Very thanks to Takashi Yano

CYGWIN=disable_pcon solved my problem


Aha!  As I thought - something about the terminal!

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


Re: [cygwin] Issue on output when using javac or scalac under emacs

2020-08-26 Thread Eliot Moss

On 8/26/2020 2:31 AM, Luc Henninger wrote:

Le 26/08/2020 à 01:19, Jason Pyeron a écrit :

-Original Message-
From: Luc Henninger
Sent: Tuesday, August 25, 2020 6:40 PM


I'm thick - what the issue? There was no body to the email.



Hello,

( My previous message dos not contain the text, only the attachments!!! )

For years, I use emacs-nt (the one provided by gnu.org) under cygwin. I just discover that emacs is 
also directly provided by cygwin (late is better than never :-)). So I try to use it successfully up 
to a compilation error in one of my program in java.


To compile java (or scala), I use my own makefile that I start from emacs.

In case of error, I encountered a strange output undex emacs_w32 and emacs_nox compared to emacs_nt 
(see trace_nox, trace_w32 and trace_nt in attachment).


I currently use emacs release 27.1 for all emacses, but I verify that I have the same strange 
behaviour with emacs 26.3.


Can anybody explain this? and more gane give a workaround?


Here's a thought.  Emacs NT would be a native Windows build of Emacs, so is definitely organized to 
interact properly with Windows subprocesses.  The Cygwin versions are designed to interact most 
easily with Cygwin subprocesses.  They can probably be made to work with Windows subprocesses, but 
as you found, there is at least one rough edge here.  My first guess would be something to do with 
line endings as they are conveyed back to the parent Emacs - the Windows "extra" CRs may confuse a 
Cygwin Emacs if it is not expecting them.  We sometimes see this with bash scripts brought over from 
Linux to Cygwin.  Anyway, this, or other character set related things, is where I would start to 
diagnose the issue and try different settings.  I would ask questions around what the terminal 
settings are that the subprocesses see, what exact characters are they outputting, etc.


Other are more expert than I in these details and may have specific settings to suggest that you 
look at :-) ...


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


Re: [cygwin] Issue on output when using javac or scalac under emacs solved

2020-08-26 Thread Luc Henninger

Very thanks to Takashi Yano

CYGWIN=disable_pcon solved my problem

--

luc.hennin...@orange.fr+33 6 32 96 32 27


--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

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


Re: [cygwin] Issue on output when using javac or scalac under emacs

2020-08-26 Thread Takashi Yano via Cygwin
On Wed, 26 Aug 2020 08:31:35 +0200
Luc Henninger wrote:
> Le 26/08/2020 à 01:19, Jason Pyeron a écrit :
> >> -Original Message-
> >> From: Luc Henninger
> >> Sent: Tuesday, August 25, 2020 6:40 PM
> >>
> > I'm thick - what the issue? There was no body to the email.
> >
> >
> Hello,
> 
> ( My previous message dos not contain the text, only the attachments!!! )
> 
> For years, I use emacs-nt (the one provided by gnu.org) under cygwin. I 
> just discover that emacs is also directly provided by cygwin (late is 
> better than never :-)). So I try to use it successfully up to a 
> compilation error in one of my program in java.
> 
> To compile java (or scala), I use my own makefile that I start from emacs.
> 
> In case of error, I encountered a strange output undex emacs_w32 and 
> emacs_nox compared to emacs_nt (see trace_nox, trace_w32 and trace_nt in 
> attachment).

I'm not sure what you meant by emacs_w32, but if you start make by
M-x compile, I guess
env CYGWIN=disable_pcon emacs
will solve the issue.

> I currently use emacs release 27.1 for all emacses, but I verify that I 
> have the same strange behaviour with emacs 26.3.
> 
> Can anybody explain this? and more gane give a workaround?

Cygwin 3.1.x and later enables pseudo console for non-cygwin apps.
Pseudo console generates some ANSI escape sequences if non-cygwin
apps are executed. However, emacs provides dumb terminal for M-x
compile, M-x shell or M-x eshell. As a result, the problem occurs.

CYGWIN=disable_pcon disables pseudo console, so it will resolve
the issue.

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


Re: Issue on output when using javac or scalac under emacs

2020-08-26 Thread Luc Henninger

Le 26/08/2020 à 02:36, Eliot Moss a écrit :
Dear Luc -- You should be aware that while Cygwin can invoke Java, the 
Windows Java still expects _Windows-style_ arguments, including 
Windows paths, etc.


For example, not a/b/c:d/e but 'a\b\c;d\e" for a path.

Just because you're using Cygwin, the installed Java is not 
"magically" transported to the Linux world!


You may also run into issues around line endings (CR/LF vs LF only, 
and so forth).


Regards - Eliot Moss


Thanks, but I already use "cygpath" within my makefiles in case of 
"java" to convert file paths.


Regards

--
luc.hennin...@orange.fr+33 6 32 96 32 27


--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

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


Re: [cygwin] Issue on output when using javac or scalac under emacs

2020-08-26 Thread Luc Henninger

Le 26/08/2020 à 01:19, Jason Pyeron a écrit :

-Original Message-
From: Luc Henninger
Sent: Tuesday, August 25, 2020 6:40 PM


I'm thick - what the issue? There was no body to the email.



Hello,

( My previous message dos not contain the text, only the attachments!!! )

For years, I use emacs-nt (the one provided by gnu.org) under cygwin. I 
just discover that emacs is also directly provided by cygwin (late is 
better than never :-)). So I try to use it successfully up to a 
compilation error in one of my program in java.


To compile java (or scala), I use my own makefile that I start from emacs.

In case of error, I encountered a strange output undex emacs_w32 and 
emacs_nox compared to emacs_nt (see trace_nox, trace_w32 and trace_nt in 
attachment).


I currently use emacs release 27.1 for all emacses, but I verify that I 
have the same strange behaviour with emacs 26.3.


Can anybody explain this? and more gane give a workaround?

Regards

--
luc.hennin...@orange.fr+33 6 32 96 32 27


--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus

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


Re: Issue on output when using javac or scalac under emacs

2020-08-25 Thread Eliot Moss
Agreed that / vs \ is sometimes no problem. I do know that Windows Java really 
wants ; and not : when giving multiple path names ... EM

Sent from my iPhone

> On Aug 25, 2020, at 10:50 PM, Brian Inglis  
> wrote:
> 
> On 2020-08-25 18:36, Eliot Moss wrote:
>> Dear Luc 
>> You should be aware that while Cygwin can invoke Java, the Windows Java still
>> expects _Windows-style_ arguments, including Windows paths, etc.
>>> For example, not a/b/c:d/e but 'a\b\c;d\e" for a path.
>> 
>> Just because you're using Cygwin, the installed Java is not "magically"
>> transported to the Linux world!
>> 
>> You may also run into issues around line endings (CR/LF vs LF only, and so 
>> forth).
> 
> Many Windows APIs and programs accept either path separator and in such cases
> there are seldom issues as long as the paths are not too long e.g. try:
> 
>$ /proc/cygdrive/c/Windows/System32/icacls path/with/slash/delimiters
> 
> and many programs, including editors and terminals, do a good job of adapting 
> to
> line endings, including mintty and less.
> 
> -- 
> Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
> 
> This email may be disturbing to some readers as it contains
> too much technical detail. Reader discretion is advised.
> [Data in IEC units and prefixes, physical quantities in SI.]
> --
> Problem reports:  https://cygwin.com/problems.html
> FAQ:  https://cygwin.com/faq/
> Documentation:https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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


Re: Issue on output when using javac or scalac under emacs

2020-08-25 Thread Brian Inglis
On 2020-08-25 18:36, Eliot Moss wrote:
> Dear Luc 
> You should be aware that while Cygwin can invoke Java, the Windows Java still
> expects _Windows-style_ arguments, including Windows paths, etc.
> > For example, not a/b/c:d/e but 'a\b\c;d\e" for a path.
> 
> Just because you're using Cygwin, the installed Java is not "magically"
> transported to the Linux world!
> 
> You may also run into issues around line endings (CR/LF vs LF only, and so 
> forth).

Many Windows APIs and programs accept either path separator and in such cases
there are seldom issues as long as the paths are not too long e.g. try:

$ /proc/cygdrive/c/Windows/System32/icacls path/with/slash/delimiters

and many programs, including editors and terminals, do a good job of adapting to
line endings, including mintty and less.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [cygwin] Issue on output when using javac or scalac under emacs

2020-08-25 Thread Brian Inglis
On 2020-08-25 17:19, Jason Pyeron wrote:
>> -Original Message-
>> From: Luc Henninger
>> Sent: Tuesday, August 25, 2020 6:40 PM
>>
> 
> I'm thick - what the issue? There was no body to the email.

There were three attachments with javac complaining about a missing symbol, but
it is unclear under what conditions which product produced each of the outputs,
what output was expected, and what was the issue with what was actually output?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Issue on output when using javac or scalac under emacs

2020-08-25 Thread Eliot Moss
Dear Luc -- You should be aware that while Cygwin can invoke Java, the Windows Java still expects 
_Windows-style_ arguments, including Windows paths, etc.


For example, not a/b/c:d/e but 'a\b\c;d\e" for a path.

Just because you're using Cygwin, the installed Java is not "magically" 
transported to the Linux world!

You may also run into issues around line endings (CR/LF vs LF only, and so 
forth).

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


RE: [cygwin] Issue on output when using javac or scalac under emacs

2020-08-25 Thread Jason Pyeron
> -Original Message-
> From: Luc Henninger
> Sent: Tuesday, August 25, 2020 6:40 PM
> 

I'm thick - what the issue? There was no body to the email.


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


Issue on output when using javac or scalac under emacs

2020-08-25 Thread Luc Henninger


trace_w32
Description: Binary data


trace_nox
Description: Binary data


trace_nt
Description: Binary data
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


gettext util msgfmt error (javac: subprocess failed)

2010-07-22 Thread Arian
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



Re: gettext util msgfmt error (javac: subprocess failed)

2010-07-22 Thread Arian
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



Re: javac?

2007-03-09 Thread Shankar Unni

Samuel Thibault wrote:


Linux distributions usually provide a javac symlink pointing on gcj,
which is handy for all these applications that assume that javac is the
proper command for compiling java programs.


If you must do that, at least do it with alternatives.


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



Re: javac?

2007-03-04 Thread Samuel Thibault
Hi,

Igor Peshansky, le Sat 03 Mar 2007 23:05:31 -0500, a écrit :
  Isn't there a way to have a working javac command by just installing
  cygwin packages, or installing SUN's jdk is necessary?
 
 The scripts will translate Cygwin paths for you into Windows paths...  The
 native Windows versions of Java will not understand Cygwin paths.  Other
 than that, if you're only planning to use relative paths, you can stick
 with the native JDK.

Well, I rather meant: can't we wrap gcc-java's gcj?

Samuel

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



RE: javac?

2007-03-04 Thread Dave Korn
On 04 March 2007 09:42, Samuel Thibault wrote:

 Hi,
 
 Igor Peshansky, le Sat 03 Mar 2007 23:05:31 -0500, a écrit :
 Isn't there a way to have a working javac command by just installing
 cygwin packages, or installing SUN's jdk is necessary?
 
 The scripts will translate Cygwin paths for you into Windows paths...  The
 native Windows versions of Java will not understand Cygwin paths.  Other
 than that, if you're only planning to use relative paths, you can stick
 with the native JDK.
 
 Well, I rather meant: can't we wrap gcc-java's gcj?

  I'd happily add such a wrapper script to the cygwin gcj distro, if someone
wants to contribute one, and assuming there are no major technical objections.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



javac?

2007-03-03 Thread Samuel Thibault
Hi,

Linux distributions usually provide a javac symlink pointing on gcj,
which is handy for all these applications that assume that javac is the
proper command for compiling java programs.

Maybe cygwin should provide a javac symlink too?

Samuel

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



Re: javac?

2007-03-03 Thread Samuel Thibault
Hi,

Samuel Thibault, le Sun 04 Mar 2007 00:01:54 +0100, a écrit :
 Linux distributions usually provide a javac symlink pointing on gcj,
 which is handy for all these applications that assume that javac is the
 proper command for compiling java programs.
 
 Maybe cygwin should provide a javac symlink too?

Err, sorry, it's not as simple as a symlink, but a wrapper. Still it
could be useful.

Samuel

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



Re: javac?

2007-03-03 Thread Igor Peshansky
On Sun, 4 Mar 2007, Samuel Thibault wrote:

 Hi,

 Samuel Thibault, le Sun 04 Mar 2007 00:01:54 +0100, a écrit :
  Linux distributions usually provide a javac symlink pointing on gcj,
  which is handy for all these applications that assume that javac is the
  proper command for compiling java programs.
 
  Maybe cygwin should provide a javac symlink too?

 Err, sorry, it's not as simple as a symlink, but a wrapper. Still it
 could be useful.

You might consider the Java wrappers in cygwin-apps:
http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for nothing left to lose...  -- Janis Joplin
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: javac?

2007-03-03 Thread Samuel Thibault
Hi,

Igor Peshansky, le Sat 03 Mar 2007 19:06:43 -0500, a écrit :
 You might consider the Java wrappers in cygwin-apps:
 http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps.

But this is not provided as a cygwin package and does point to cygwin
programs.  Isn't there a way to have a working javac command by just
installing cygwin packages, or installing SUN's jdk is necessary?

Samuel

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



Re: javac?

2007-03-03 Thread Igor Peshansky
On Sun, 4 Mar 2007, Samuel Thibault wrote:

 Igor Peshansky, le Sat 03 Mar 2007 19:06:43 -0500, a écrit :
  You might consider the Java wrappers in cygwin-apps:
  http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps.

 But this is not provided as a cygwin package and does point to cygwin
 programs.

No, this is not yet a Cygwin package.  I haven't found the time to release
it.  What I usually do is check out this directory into, say,
/usr/contrib/wrappers/java, and add symlinks from /usr/local/bin.

 Isn't there a way to have a working javac command by just installing
 cygwin packages, or installing SUN's jdk is necessary?

The scripts will translate Cygwin paths for you into Windows paths...  The
native Windows versions of Java will not understand Cygwin paths.  Other
than that, if you're only planning to use relative paths, you can stick
with the native JDK.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for nothing left to lose...  -- Janis Joplin
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

RE: javac on cygwin

2003-01-15 Thread Chris January
 On Mon, Jan 13, 2003 at 11:26:28AM -0800, Shankar Unni wrote:
 Christopher Faylor wrote:
 I remember speculating at one point about creating wrappers to the
 win32 functions like CreateFile, MoveFile, etc.  which would understand
 cygwin paths.  You could theoretically modify an .exe to load
 cygwin1.dll and use the wrapper functions.  Or you could use some of
 Windows hook facilities to do that.
 
 Hmm.  Would that even work?

This is a project I might work on when I have the time.

Chris


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-15 Thread Christopher Faylor
On Wed, Jan 15, 2003 at 09:07:42AM -, Chris January wrote:
 On Mon, Jan 13, 2003 at 11:26:28AM -0800, Shankar Unni wrote:
 Christopher Faylor wrote:
 I remember speculating at one point about creating wrappers to the
 win32 functions like CreateFile, MoveFile, etc.  which would understand
 cygwin paths.  You could theoretically modify an .exe to load
 cygwin1.dll and use the wrapper functions.  Or you could use some of
 Windows hook facilities to do that.
 
 Hmm.  Would that even work?

This is a project I might work on when I have the time.

Cool!  Thanks, Chris!  I can't think of anyone better to work on this.

If you (Chris) want to send private email to discuss, feel free.  Or,
better yet, discussion on cygwin-developers would probably tap even more
experience.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-14 Thread Shankar Unni
Christopher Faylor wrote:


Hmm.  Would that even work?



Yes.


Hmm again. It'll be interesting to see this in action..
--
Shankar.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-13 Thread Shankar Unni
Christopher Faylor wrote:


I remember speculating at one point about creating wrappers to the win32
functions like CreateFile, MoveFile, etc.  which would understand cygwin
paths.  You could theoretically modify an .exe to load cygwin1.dll and
use the wrapper functions.  Or you could use some of Windows hook
facilities to do that.


Hmm. Would that even work?

I remember trying, way back when, to provide a checking malloc library 
on Windows, and then discovering that there was *no* way of intercepting 
malloc() calls *inside LIBC itself*.  In the Windows PE world (unlike 
the ELF world), a call to a routine that lives inside the same DLL is 
automatically bound to the local copy without any way to hijack the call.

Thus there's no way to play games with LD_LIBRARY_PATH (or PATH, rather) 
to load a malloc that'll hijack all calls successfully. And there's 
definitely nothing like the LD_PRELOAD mechanism to wrap existing 
pre-linked programs to inject support libraries into the lib list.

So any CreateFile calls inside the windows libraries would always go to 
the built-in CreateFile.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: javac on cygwin

2003-01-13 Thread Christopher Faylor
On Mon, Jan 13, 2003 at 11:26:28AM -0800, Shankar Unni wrote:
Christopher Faylor wrote:
I remember speculating at one point about creating wrappers to the
win32 functions like CreateFile, MoveFile, etc.  which would understand
cygwin paths.  You could theoretically modify an .exe to load
cygwin1.dll and use the wrapper functions.  Or you could use some of
Windows hook facilities to do that.

Hmm.  Would that even work?

Yes.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-11 Thread Randall R Schulz
Kevin,

Someone asked on news:comp.lang.java.softwaretools about makefiles for 
Java. Another person replied with a pointer to this site: 
http://geosoft.no/javamake.html, which appears to have a good makefile 
for Java. It should be usable as-is or easily be modified to work under Cygwin.

I haven't tried it, but I remembered your query and thought you might like 
to check it out.

Randall Schulz


At 03:52 2003-01-04, Kevin Cheng wrote:
Ok, I've searched for articles on getting a java
compiler working on cygwin. I got very vague info.

Can someone please give me the newbie quick setup on
setting up a java compiler to work on cygwin.

I've got the java JDK 1.4.1 from java.sun.com. Now
what do I do?



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: javac on cygwin

2003-01-06 Thread Igor Pechtchanski
David,

Thanks for considering this.  The only real way to identify major (and
minor) issues, however, is testing, so, hopefully, people will use these
scripts.  Once they are deemed reasonably robust, it might even be worth
it to release a java wrapper package for Cygwin...

Actually, the custom java.io.File wrapper is very useful in that it's
orthogonal to the purpose of my scripts and takes care of one of the
caveats (namely, the filenames passed to Java programs).  It might be a
good idea to post that code along with the scripts (there must be some
tricks one can play with the CLASSPATH to transparently substitute the
real java.io.File with the wrapper, so the programs don't have to change).
Igor

On Mon, 6 Jan 2003, David P. Caldwell wrote:

 Igor:

 I'm going through a big site reorganization right now (the code, not the
 material), but I do intend to get your scripts up on my site (probably in
 the FAQ).

 I glanced at them and didn't identify any major issues with them.  I don't
 have much of a need for them for a few reasons:

 (1)  I use a wrapper class for java.io.File in my own programs which
 recognizes Cygwin-style paths,
 (2)  I don't develop on UNIX, so don't have much need for portable build
 scripts,
 (3)  For most of my own projects, I use a stupid little build tool I wrote
 myself (which is similar to Ant), and for customer projects, I have used Ant
 itself.

 Thanks for the contribution, though ... getting those scripts out there will
 only help other people and/or make them better.

 -- David.
 -Original Message-
 From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 04, 2003 4:55 PM
 To: David P. Caldwell; [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: javac on cygwin


 On Sat, 4 Jan 2003, David P. Caldwell wrote:

  Kevin:
 
  Ok, I've searched for articles on getting a java
  compiler working on cygwin. I got very vague info.
 
  I've got the java JDK 1.4.1 from java.sun.com. Now
  what do I do?
 
  Not sure what your background is, so I'm not sure how to answer.  Right
 now,
  you could be someone who doesn't know Java, someone who doesn't know
 Cygwin,
  someone who doesn't know UNIX ... so without sitting down and writing a
  script that would satisfy all three audiences (a combined Java/Cygwin/UNIX
  tutorial), I can't really answer your question.
 
  You might want to check out
 
  http://www.inonit.com/cygwin/
 
  Perhaps you can let us know specifically what you've tried and what
 happened
  so that we can assess your situation more accurately.
 
  -- David.

 For what it's worth, I use the attached scripts as wrappers for java, jar,
 javadoc and javac (the javac one is not extensively tested as I use a
 Cygwin-compiled jikes for java compilation).  The only caveat is that
 filenames passed as parameters to Java programs and custom doclet options
 in javadoc are not converted.  You will need to change the *_EXEC values
 close to the beginning of the scripts to conform to your system (I have
 IBM JDK 1.3).

 Hope this helps.  David, feel free to post them on the web page if needed.
 I'd also appreciate any comments or bug reports.  Thanks.
 Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: javac on cygwin

2003-01-06 Thread David P. Caldwell
Igor:

Actually, the custom java.io.File wrapper is very useful in that it's
orthogonal to the purpose of my scripts and takes care of one of the
caveats (namely, the filenames passed to Java programs).

Actually, the way it works now, the programs I write have to be Cygwin-aware
(I don't have a java.io.File substitute -- I have an inonit.cygwin.File
class which can represent a Windows or UNIX-style path).

However, as you mention, it's at least occurred to me that the entire
java.io.File class could be re-implemented with Cygwin-aware functionality
and then could be used in preference to the java.io.File class by putting it
in front of rt.jar in the -bootclasspath (at least on JDK 1.2 and later).

One would probably also have to change FileInputStream and other classes --
I haven't looked into it extensively.

-- David.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: javac on cygwin

2003-01-05 Thread David P. Caldwell
Igor:

I'm going through a big site reorganization right now (the code, not the
material), but I do intend to get your scripts up on my site (probably in
the FAQ).

I glanced at them and didn't identify any major issues with them.  I don't
have much of a need for them for a few reasons:

(1)  I use a wrapper class for java.io.File in my own programs which
recognizes Cygwin-style paths,
(2)  I don't develop on UNIX, so don't have much need for portable build
scripts,
(3)  For most of my own projects, I use a stupid little build tool I wrote
myself (which is similar to Ant), and for customer projects, I have used Ant
itself.

Thanks for the contribution, though ... getting those scripts out there will
only help other people and/or make them better.

-- David.
-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 04, 2003 4:55 PM
To: David P. Caldwell; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: javac on cygwin


On Sat, 4 Jan 2003, David P. Caldwell wrote:

 Kevin:

 Ok, I've searched for articles on getting a java
 compiler working on cygwin. I got very vague info.

 I've got the java JDK 1.4.1 from java.sun.com. Now
 what do I do?

 Not sure what your background is, so I'm not sure how to answer.  Right
now,
 you could be someone who doesn't know Java, someone who doesn't know
Cygwin,
 someone who doesn't know UNIX ... so without sitting down and writing a
 script that would satisfy all three audiences (a combined Java/Cygwin/UNIX
 tutorial), I can't really answer your question.

 You might want to check out

 http://www.inonit.com/cygwin/

 Perhaps you can let us know specifically what you've tried and what
happened
 so that we can assess your situation more accurately.

 -- David.

For what it's worth, I use the attached scripts as wrappers for java, jar,
javadoc and javac (the javac one is not extensively tested as I use a
Cygwin-compiled jikes for java compilation).  The only caveat is that
filenames passed as parameters to Java programs and custom doclet options
in javadoc are not converted.  You will need to change the *_EXEC values
close to the beginning of the scripts to conform to your system (I have
IBM JDK 1.3).

Hope this helps.  David, feel free to post them on the web page if needed.
I'd also appreciate any comments or bug reports.  Thanks.
Igor
--
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-04 Thread David P. Caldwell
Kevin:

Ok, I've searched for articles on getting a java
compiler working on cygwin. I got very vague info.

I've got the java JDK 1.4.1 from java.sun.com. Now
what do I do?

Not sure what your background is, so I'm not sure how to answer.  Right now,
you could be someone who doesn't know Java, someone who doesn't know Cygwin,
someone who doesn't know UNIX ... so without sitting down and writing a
script that would satisfy all three audiences (a combined Java/Cygwin/UNIX
tutorial), I can't really answer your question.

You might want to check out

http://www.inonit.com/cygwin/

Perhaps you can let us know specifically what you've tried and what happened
so that we can assess your situation more accurately.

-- David.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-04 Thread Randall R Schulz
Kevin,

Javac is not particularly special. It is a Windows-native program, and as 
such requires absolute file and directory names be provided in Windows 
format (forward slashes are OK, but drive letters are required and the 
Cygwin notion of root is completely unknown to such programs). PATH-like 
variables (specifically CLASSPATH) must be in Windows format (semicolon 
separators).

Both of these conversions is handled by the cygpath utility. Learn about it.

I strongly suggest that if your development environment, either 
individually or as a group, is or is at all likely to become cross-platform 
(betwen Windows and any kind of Unix), that you adopt a Unix-centered set 
of build scripts and then create cover scripts that encapsulate the 
operations that bridge the gap between the POSIX / Unix world of Cygwin and 
the underlying native Sun Java SDK tools. Do so in a way that allows those 
translations to be easily switched off, replaced or made null when not 
needed (when you're working on an actual Unix system).

I do lots of Java under Windows with Cygwin and have for quite a while. 
Feel free to come back with further questions.

Randall Schulz


At 03:52 2003-01-04, Kevin Cheng wrote:
Ok, I've searched for articles on getting a java
compiler working on cygwin. I got very vague info.

Can someone please give me the newbie quick setup on
setting up a java compiler to work on cygwin.

I've got the java JDK 1.4.1 from java.sun.com. Now
what do I do?



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: javac on cygwin

2003-01-04 Thread Igor Pechtchanski
On Sat, 4 Jan 2003, David P. Caldwell wrote:

 Kevin:

 Ok, I've searched for articles on getting a java
 compiler working on cygwin. I got very vague info.

 I've got the java JDK 1.4.1 from java.sun.com. Now
 what do I do?

 Not sure what your background is, so I'm not sure how to answer.  Right now,
 you could be someone who doesn't know Java, someone who doesn't know Cygwin,
 someone who doesn't know UNIX ... so without sitting down and writing a
 script that would satisfy all three audiences (a combined Java/Cygwin/UNIX
 tutorial), I can't really answer your question.

 You might want to check out

 http://www.inonit.com/cygwin/

 Perhaps you can let us know specifically what you've tried and what happened
 so that we can assess your situation more accurately.

 -- David.

For what it's worth, I use the attached scripts as wrappers for java, jar,
javadoc and javac (the javac one is not extensively tested as I use a
Cygwin-compiled jikes for java compilation).  The only caveat is that
filenames passed as parameters to Java programs and custom doclet options
in javadoc are not converted.  You will need to change the *_EXEC values
close to the beginning of the scripts to conform to your system (I have
IBM JDK 1.3).

Hope this helps.  David, feel free to post them on the web page if needed.
I'd also appreciate any comments or bug reports.  Thanks.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

#!/bin/bash
#
# A wrapper for calling Java from Cygwin
# Author: Igor Pechtchanski [EMAIL PROTECTED]
#

ME=`basename $0`
JAVA_EXEC=/cygdrive/c/Program Files/IBM/Java13/jre/bin/java.exe
ARGS=

while [ -n $1 ]; do
   arg=$1
   shift
   case $arg in
  -cp | -classpath)
 arg=$arg' '`cygpath -p -w $1`
 shift
 ;;
  -Xbootclasspath*:*)
 arg=${arg%%:*}:`cygpath -p -w ${arg#*:}`
 ;;
   esac
   ARGS=$ARGS '$arg'
done

eval set -- $ARGS

exec $JAVA_EXEC $@


#!/bin/bash
#
# A wrapper for calling Jar from Cygwin
# Author: Igor Pechtchanski [EMAIL PROTECTED]
#

ME=`basename $0`
JAR_EXEC=/cygdrive/c/Program Files/IBM/Java13/bin/jar.exe
ARGS=
if [ -n $1 ]; then
   firstarg=$1; shift
   ARGS=$ARGS '$firstarg'
   # Check for filename
   case $firstarg in
  *f*) arg=`cygpath -w $1`
   shift
   ARGS=$ARGS '$arg';;
   esac
   # Check for manifest
   case $firstarg in
  *m*) arg=`cygpath -w $1`
   shift
   ARGS=$ARGS '$arg';;
   esac
fi
# Change all filenames
while [ -n $1 ]; do
   arg=$1
   shift
   case $arg in
  -*) ;;
  *) arg=`cygpath -p -w $1` ;;
   esac
   ARGS=$ARGS '$arg'
done

eval set -- $ARGS

exec $JAR_EXEC $@


#!/bin/bash
#
# A wrapper for calling Javadoc from Cygwin
# Author: Igor Pechtchanski [EMAIL PROTECTED]
#

ME=`basename $0`
JAVADOC_EXEC=/cygdrive/c/Program Files/IBM/Java13/bin/javadoc.exe
ARGS=

while [ -n $1 ]; do
   arg=$1
   shift
   case $arg in
  # Generic options
  -overview)
 arg=$arg' '`cygpath -w $1`
 shift
 ;;
  -public | \
  -protected | \
  -package | \
  -private | \
  -help | \
  -1.1 | \
  -verbose)
 ;;
  -doclet | \
  -locale | \
  -encoding)
 arg=$arg' '$1
 shift
 ;;
  -docletpath | \
  -sourcepath | \
  -classpath | \
  -bootclasspath | \
  -extdirs)
 arg=$arg' '`cygpath -p -w $1`
 shift
 ;;

  # Java flags option
  -Jcp | -Jclasspath)
 arg=$arg' '`cygpath -p -w $1`
 shift
 ;;
  -JXbootclasspath*:*)
 arg=${arg%%:*}:`cygpath -p -w ${arg#*:}`
 ;;
  -J*)
 ;;

  # Doclet options
  -d | \
  -helpfile | \
  -stylesheetfile)
 arg=$arg' '`cygpath -w $1`
 shift
 ;;
  -use | \
  -version | \
  -author | \
  -splitindex | \
  -nodeprecated | \
  -nodeprecatedlist | \
  -nosince | \
  -notree | \
  -noindex | \
  -nohelp | \
  -nonavbar | \
  -serialwarn)
 ;;
  -windowtitle | \
  -doctitle | \
  -title)
 arg=$arg' '$1
 shift
 ;;
  -header | \
  -footer | \
  -bottom)
 # Quote single quotes
 arg=$arg' '`echo $1 | sed s/'/'''/g`
 shift
 ;;
  -link)
 arg=$arg' '$1
 shift
 ;;
  -link)
 arg=$arg' '$1' '$2
 shift
 shift
 ;;
  -group

Re: javac on cygwin

2003-01-04 Thread Shankar Unni
Randall R Schulz wrote:


Javac is not particularly special. It is a Windows-native program, and 
as such requires absolute file and directory names be provided in 
Windows format (forward slashes are OK, but drive letters are required 
and the Cygwin notion of root is completely unknown to such programs). 

Javac is a pure java program. The windows executable is only there as 
a thin native wrapper that launches sun.tools.javac.Main.

The bigger problem is that Sun JRE is compiled to the native Win32 API, 
not to cygwin, so *any* Java programs running in the Sun JRE will never 
understand cygwin mount points.

In theory, someone could invest in the effort to port, say, the Linux 
port of the Sun JRE to cygwin, but it would be a huge effort.

Igor's idea (wrappers that run cygpath -m on the paths being passed to 
Java) would be the best approach in this situation, especially for 
well-known Java programs like javac.




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: javac on cygwin

2003-01-04 Thread Randall R Schulz
Shankar,

At 14:17 2003-01-04, Shankar Unni wrote:

Randall R Schulz wrote:


Javac is not particularly special. It is a Windows-native program, and as 
such requires absolute file and directory names be provided in Windows 
format (forward slashes are OK, but drive letters are required and the 
Cygwin notion of root is completely unknown to such programs).

Javac is a pure java program. The windows executable is only there as a 
thin native wrapper that launches sun.tools.javac.Main.

That may be true, but it's irrelevant. Its external interface via its 
command line options follows the Windows conventions. That's all that 
matters. It is a Windows executable for all intents and purposes.


The bigger problem is that Sun JRE is compiled to the native Win32 API, 
not to cygwin, so *any* Java programs running in the Sun JRE will never 
understand cygwin mount points.

Yes, of course. That's hardly surprising.



In theory, someone could invest in the effort to port, say, the Linux port 
of the Sun JRE to cygwin, but it would be a huge effort.

Igor's idea (wrappers that run cygpath -m on the paths being passed to 
Java) would be the best approach in this situation, especially for 
well-known Java programs like javac.

That's what I do. I have a generic one that converts anything that looks 
like a file name via cygpath. It's not fool-proof, but the criteria for 
converting names could be refined.

The alternative is a target-specific script that understands what all the 
arguments options and option arguments are and converts them as needed.

Randall Schulz 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: javac on cygwin

2003-01-04 Thread Christopher Faylor
On Sat, Jan 04, 2003 at 04:20:36PM -0800, Randall R Schulz wrote:
At 14:17 2003-01-04, Shankar Unni wrote:
Randall R Schulz wrote:

Javac is not particularly special. It is a Windows-native program, and as 
such requires absolute file and directory names be provided in Windows 
format (forward slashes are OK, but drive letters are required and the 
Cygwin notion of root is completely unknown to such programs).

Javac is a pure java program. The windows executable is only there as a 
thin native wrapper that launches sun.tools.javac.Main.

That may be true, but it's irrelevant. Its external interface via its 
command line options follows the Windows conventions. That's all that 
matters. It is a Windows executable for all intents and purposes.


The bigger problem is that Sun JRE is compiled to the native Win32 API, 
not to cygwin, so *any* Java programs running in the Sun JRE will never 
understand cygwin mount points.

Yes, of course. That's hardly surprising.


In theory, someone could invest in the effort to port, say, the Linux port 
of the Sun JRE to cygwin, but it would be a huge effort.

Igor's idea (wrappers that run cygpath -m on the paths being passed to 
Java) would be the best approach in this situation, especially for 
well-known Java programs like javac.

That's what I do. I have a generic one that converts anything that looks 
like a file name via cygpath. It's not fool-proof, but the criteria for 
converting names could be refined.

The alternative is a target-specific script that understands what all the 
arguments options and option arguments are and converts them as needed.

I remember speculating at one point about creating wrappers to the win32
functions like CreateFile, MoveFile, etc.  which would understand cygwin
paths.  You could theoretically modify an .exe to load cygwin1.dll and
use the wrapper functions.  Or you could use some of Windows hook
facilities to do that.

I don't think my idea met with much enthusiasm when I mentioned it, but
I always thought it would be an interesting exercise.  It wouldn't help
for programs which actually do parsing on input file specs outside of
the standard Windows API, though.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: javac compiler

2001-12-07 Thread Alex Malinovich

Well, assuming you already have the JDK installed in Windows, just use
it! :) If you don't have it installed, then first install it and follow
the directions for updating your path. Once you've done that you'll be
able to call it from within cygwin with no problem.

-Alex

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of KEVIN PHILLIPS
Sent: Friday, December 07, 2001 8:40 PM
To: [EMAIL PROTECTED]
Subject: javac compiler


How does one go about installing the javac compiler on a windows machine
using cygwin?

I would like to be able to use javac in cygwin, how do I set this up?

Thanks for any suggestions you might have!

-kp


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: javac compiler

2001-12-07 Thread Randall R Schulz

Kevin,

Just realize that the Sun javac is a Windows application, so it needs a 
Windows-style CLASSPATH variable (or -classpath argument) and file name 
path syntax.

Randall Schulz
Mountain View, CA USA


At 18:58 2001-12-07, Alex Malinovich wrote:
Well, assuming you already have the JDK installed in Windows, just use it! 
:) If you don't have it installed, then first install it and follow the 
directions for updating your path. Once you've done that you'll be able to 
call it from within cygwin with no problem.

-Alex

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of KEVIN PHILLIPS
Sent: Friday, December 07, 2001 8:40 PM
To: [EMAIL PROTECTED]
Subject: javac compiler


How does one go about installing the javac compiler on a windows machine 
using cygwin?

I would like to be able to use javac in cygwin, how do I set this up?

Thanks for any suggestions you might have!

-kp


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/