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 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"