Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Strings and Variables

Chris Grazioli
Chris Grazioli
31,225 Points

Is the javac compiler case sensitive, as with file names? because off the bat the video is showing 2 different things

javac Introduction should call a different file than javac introduction would, or any mis-spelling or case confusion wouldn't it

4 Answers

Stone Preston
Stone Preston
42,016 Points

javac Introduction should call a different file than javac introduction would, or any mis-spelling or case confusion wouldn't it

its probably best to assume that case matters (although this does depend on the filesystem/shell)

however I dont see any point in the video where Craig uses introduction instead of Introduction. Can you provide the time in the video where this occurs?

Chris Grazioli
Chris Grazioli
31,225 Points

You know what.... Its NOT, now that I put my glasses on and went looking. In the video the font for the code the "I" is obvious serif or something and the tab on Workspaces looks to be Arial so it looked lowercase to me without my glasses.... MENTAL BLOCK!!!

Stone Preston
Stone Preston
42,016 Points

oh alright well cool then.

Mikael Enarsson
Mikael Enarsson
7,056 Points

As far as I have come to understand it, mainly by this discussion, it depends on your system. For example, since Windows lookups are case-insensitive, so is javac on that system. On the other hand, Linux is case-sensitive, and so is javac run under it.

Chris Grazioli
Chris Grazioli
31,225 Points

I know in C language the compiler is this way...