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 Java Basics Getting Started with Java Strings and Variables

NAJEEBULLAH KHAN
NAJEEBULLAH KHAN
2,967 Points

treehouse:~/workspace$ java introductions Picked

i get this massege and not result is printed no file is retrieved althought ls command returns the file unable to compile and open its useless i have to go to bluej to code and practice whats the point of having a console if it cannot be used this is the massage i get "treehouse:~/workspace$ java introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Error: Could not find or load main class introductions "

1 Answer

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

Hi there! To begin with, the first couple of lines that you've posted are simply informational messages related to memory options in the JVM. These do not affect your code.

But then you posted this:

Error: Could not find or load main class introductions

This suggests to me that the command issued was incorrect as the class name should be "Introductions" and not "introductions". Remember, everything in Java is case-sensitive.

I suggest that you try the command again paying careful attention to the capitalization. If it still doesn't work, look at the upper right-hand side of your workspace. You should see a camera icon. This will allow you to create a "snapshot" of your workspace which you can then link to us here. We will then be able to fork your workspace and take a look around and help you troubleshoot this.

I look forward to your response! :sparkles: