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 trialJeremy Mathew
852 PointsConfused on javac introduction.java?
I typed in javac introduction.java then i pressed enter but got an error labeled:
javac: file not found: introductions.java
Usage: javac <options> <source files>
use -help for a list of possible options
then I typed "ls" and have the list but it does not show introduction.class just introduction.java
did I do something wrong?
2 Answers
Gunjeet Hattar
14,483 PointsHi Jeremy,
javac is the compiler and you will need to add a java file name after it
For e.g. javac Hello.java
Once this complies it will generate Hello.class file in the same folder.
Then type
java Hello
Also check the file name introductions.java if it correct.
Hope this explains
Jeremy Mathew
852 PointsYe it does help! Thanks for the assistance I understand it now thanks!