I'm studying the Dagger official website design example, which can be accessed at this link: link . I am using the eclipse IDE. When I run the project it gives error in the line where reference is made to the generated Dagger_Coffee class. Eclipse is simply not generating this file automatically, as the tutorials claim. I stress that I will not use Dagger in a mobile project, but rather with Java EE. I know CDI is the most appropriate, but this is a requirement of my boss. What must be wrong? Here is the code:
package coffee;
import dagger.Component;
import javax.inject.Singleton;
public class CoffeeApp {
@Singleton
@Component(modules = { DripCoffeeModule.class })
public interface Coffee {
CoffeeMaker maker();
}
public static void main(String[] args) {
Coffee coffee = Dagger_Coffee.builder().build();
coffee.maker().brew();
}
}