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

Sho Desh
Sho Desh
948 Points

hi, i have copied the same code that was in the first video( Intro class) with a different name but the code is erred.

can you find the error and tell me what am i doing wrong. i just put the same code under a different class name.

1 Answer

Ignacio Martin Elias
Ignacio Martin Elias
10,127 Points

The error probably is that the class name and the file name have to match, otherwise the file won't work. If that doesn't fix your code, please paste it here so that we can help you

you should save the new codes with ctrl+s and implement the first command which is "javac Introductions.java" because now you have a different code than earlier, and then you should implement "java Introduction"