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

Iheke Iheke-agu
seal-mask
.a{fill-rule:evenodd;}techdegree
Iheke Iheke-agu
Full Stack JavaScript Techdegree Student 2,307 Points

My workspace wont compile

Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
javac: file not found: Example.java
Usage: javac <options> <source files>
use -help for a list of possible options

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

First, the first two lines starting with Picked up are not an error message. They are an informational message about memory options set in the JVM. The error is indicating that it can't find the file you're trying to compile. Here are some things to check. Make sure you're in the right directory and that the file name matches (including capitalization). Make sure you've saved the file. If all these are ok, we're going to need to see a "snapshot" of your workspace to assist you further. If you look on the upper right-hand side of your workspace you should see a camera icon. Clicking this will make a "snapshot" of your workspace which you can link here. This will allow us to fork it and have a look around. I look forward to your response! :sparkles:

1 Answer