Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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