This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Strange bash problem with Sun's javac



When I try to compile a java file, bash is apparently munging the filename
that the java compiler sees.  I've attached a very simple .java file for
test purposes.  Here's what I see when I use the jdk1.1.7 compiler from Sun:
 - If I comment out the package statement and compile the file in the
default package, it works fine.
 - If I put the file in a relative directory named "test", and then compile
with javac test/TimerAction.java, I get an error message from javac like:
 
test/TimerAction.java:15: Public interface test.TimerAction must be defined
in a file called "TimerAction.java".
 
I don't get this error if I compile under an NT shell.  I also don't get the
error if I compile with the jdk1.2 compiler.  This error is preventing me
from using make on NT to build my system.  For the current project,
switching to 1.2 isn't an option yet, and many project members do not have
access to a unix system.
 
Did I forget to set some option somewhere?  Is this a known problem?  Thanks
for your help.
 
John Collins
KeyTech LLC, Eagan, MN

TimerAction.java

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com