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 trialM BILAL AFZAL
204 Pointsclass introducations
use -help for a list of possible options
treehouse:~/workspace$ ls
Introductions.java
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
Courses Plus Student 4,138 PointsHello,
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!
M BILAL AFZAL
204 Pointsthank you so much