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 trialVictor Yang
591 PointsPicked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Introductions.java:10: error: reached end of file while parsing
}
^
1 error
this happend
2 Answers
Trevaun Turner
1,757 PointsPicked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Is caused from Treehouse changing how much memory the console is able to access in workspaces. It pops up to let you know that the console Treehouse has built the app in accepts more memory. It has no effect on your actual code. Everything that comes after it, is what is supposed to be printed out. So you can pretty much ignore it.
The errors you are receiving are not from the Picked up "JAVA_TOOL_OPTIONS: -Xmx128m," but instead compile errors or standard runtime errors.
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsIntroductions.java:10: error: reached end of file while parsing } ^ 1 error
The error above means there is something wrong with your file, so that you cannot compile it by typing javac Introductions.java
In order to see that you have to post Introductions.java
here in forum.
The second error comes when you type
java Introductions
Error: Could not find or load main class Introductions
This error comes because you have error above, because you have not compiled your Introductions.java, you obviously cannot run.
So first you have to compile so that after typing
javac Introductions.java
There is no errors.
Only after that you can type java Introductions
...
And just like Trevaun Turner said, please disregard all "Picked up" warnings
Victor Yang
591 PointsVictor Yang
591 Pointstreehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Error: Could not find or load main class Introductions
then this