Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Chapter 3 project code #1

Closed
satishrao84 opened this issue Feb 1, 2018 · 1 comment
Closed

Running Chapter 3 project code #1

satishrao84 opened this issue Feb 1, 2018 · 1 comment

Comments

@satishrao84
Copy link

Hi,
The Chapter 3 Dependency Injection project does not have a main in it.

I was able to mvn clean install successfully, but now how would I run it?

When I go to execute the jar, I get the below error:

bash-3.2$ java -jar ./target/Chapter-03-Spring-Dependency-Injection-0.0.1-SNAPSHOT.jar

no main manifest attribute, in ./target/Chapter-03-Spring-Dependency-Injection-0.0.1-SNAPSHOT.jar

Is it possible to run this project even when there's no main class in it?

@dineshonjava
Copy link
Collaborator

Added main file, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants