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

Keep getting error "javac file not found: Introductions.java

I installed the java in my computer and created path with C:\Program Files\Java\jdk1.8.0_111 so my eclipse works fine, but somehow this error keeps coming up on workspace the specific codes are like below and not sure what to do ..

Picked up JAVA_TOOL_OPTIONS: Xmx128m Picked up JAVA__OPTIONS: Xmx128m javac: file not found: Introductions.java Usage:Javac <options> <source files>

3 Answers

Please check the PATH and CLASSPATH system variables on your computer: https://docs.oracle.com/javase/tutorial/essential/environment/paths.html Make sure you are in the right folder, try following the steps in this video: https://www.youtube.com/watch?v=zF7dfCkwZ5A

Vlad Lev Levit
PLUS
Vlad Lev Levit
Courses Plus Student 503 Points

Livia the answer is too complicated:

pls specify the reason why we see such report after launching command "java Introductions" :

treehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$

If you have difficulty following the steps in the links I provided, please come back with your exact issue. Otherwise, sorry, sometimes in programming the answer isn't easy.

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

Vlad Lev Levit

Always check Teachers Notes ...

Java Basics First video Teachers Notes

Quoting

Not to worry, the Picked up JAVA_TOOL_OPTIONS: -Xmx128m is not an error on your part, we recently just tweaked our setup to have more memory allocated. Don't fret that mine looks different!

Livia Galeazzi wanted to answer this error

 file not found: Introductions.java Usage:Javac <options> <source files>

Obviously the file Introductions.java IS NOT IN THE FOLDER

That is why she suggested to

Make sure you are in the right folder, try following the steps in this video: https://www.youtube.com/watch?v=zF7dfCkwZ5A

hyukjoon lee did not specify what is his problem, that is why it is unclear what he is trying to solve ...

Does he has problem in Eclipse?

Does he has problem in Workspace

Where does he run and what it is unclear ...

picked up Java_TOOL_OPTIONS is not an ERROR it is a WARNING...

But he is asking about the ERROR, so logically his error is file not found ...

And this question can be answered only with suggestion to check in which folder Introductions.java is ...

So I think someone just lost the question here ...

Vlad Lev Levit
PLUS
Vlad Lev Levit
Courses Plus Student 503 Points

Thank You Alexander, i will check the filepath and video on that