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 Data Structures Getting There Packages

Aaron Coursolle
Aaron Coursolle
18,014 Points

[Solved]Expected output in Console, BUT still an error

I'm confused why my code is running in console, but the new ".class" files on the directory tree are not being created. In the video the class files are automatically created when the console code is run. I'm using Workspaces.


package com.teamtreehouse;

  public class Treet {


import com.teamtreehouse.Treet;

public class Example {
 public static void main(String [] args) {
   Treet treet = new Treet();
   System.out.printf("This is a new Treet:  %s, %n", treet);


Command Line Code:

clear && javac Example.java && java Example


This is a new Treet: com.teamtreehouse.Treet@<random string here>

1 Answer

Aaron Coursolle
Aaron Coursolle
18,014 Points

I watched the video again and missed the part where he right-clicked the tree and pressed "refresh". I'll leave this question up in case someone else makes the same mistake. Before posting this, I reviewed my code so many times to make sure it matched the video, and yet I missed something so small.