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!

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 Introduction to Your Tools

class introducations

use -help for a list of possible options
treehouse:~/workspace$ ls
treehouse:~/workspace$ java introducations
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Error: Could not find or load main class introducations

how to slove this load main class introducations

2 Answers

Charles Fanucchi
Charles Fanucchi
Courses Plus Student 4,138 Points


I think I understand the problem. The program file name is "Introductions.java" not "Introducations.java" java is very specific to spelling and the rules in how it is coded. You'll want to be exact in the spelling of variables and filenames, etc.

Try this in the workspace console:

clear && javac Introductions.java && java Introductions

the "javac" command compiles the code you've written, and then "java" executes the compiled code.

I hope this helps, good luck!

thank you so much