I was compiling a .java file through the command line with the typical javac command. The file name was Test1.java, however, when I tried compiling test1.java there was no error. Why is this so?
-
Are you sure you don't have a test1.java on the same directory?Rosário P. Fernandes– Rosário P. Fernandes2017-01-22 12:58:49 +00:00Commented Jan 22, 2017 at 12:58
-
Tell us exactly what you did. You know this might also have to do with the file system your OS is providing. Macs for example have some strange settings around casiness of file namesGhostCat– GhostCat2017-01-22 13:00:12 +00:00Commented Jan 22, 2017 at 13:00
Add a comment
|
5 Answers
Because your operating system is case-insensitive.
See also answers to: Why is the Java complier (javac) case-insensitive when java (the interpreter) is case-sensitive?
1 Comment
The Bolt
That helped. Thank you!