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

no main manifest attribute, in build/libs/superlog-1.0.7.jar #15

Open
dmitvitalii opened this issue Dec 18, 2017 · 2 comments
Open

no main manifest attribute, in build/libs/superlog-1.0.7.jar #15

dmitvitalii opened this issue Dec 18, 2017 · 2 comments

Comments

@dmitvitalii
Copy link

Trying to build an application via gradle, but not able to launch it after that.


:genBuildInfo
Generating build information to /home/vdmitriev/Workspace/superlog/build/generated-sources/feiw/BuildInfo.java
:compileJava
:processResources UP-TO-DATE
:classes
:jar
Creating JAR file: /home/vdmitriev/Workspace/superlog/build/libs/superlog-1.0.7-standalone.jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build

BUILD SUCCESSFUL

Total time: 2.864 secs

However, there is no build/libs/superlog-1.0.7-standalone.jar created:

$ ls build/libs/
superlog-1.0.7.jar

Trying to launch compiled jar:
$ java -jar build/libs/superlog-1.0.7.jar
no main manifest attribute, in build/libs/superlog-1.0.7.jar

@wangfei1975
Copy link
Owner

wangfei1975 commented Dec 18, 2017

How do you execute gradle. Please try to run gradlew without parameters.
You should get build logs like following if build success.The build script will copy superlog-1.0.7-standalone.jar to the root source folder.

=====================================
To execute:
cd C:\Users\XXXXX\workspace\superlog
java -jar superlog-1.0.7-standalone.jar

@dmitvitalii
Copy link
Author

dmitvitalii commented Dec 19, 2017

As I've mentioned previously, I tried to perform ./gradlew build. It worked correctly when I did ./gradlew myjar, but didn't try just ./gradlew.
Thanks, the last one worked.

But the README.md was a little bit confusing for me, because it is a common way to build projects with ./gradlew build. I've created a patch #16 to change README.md file a bit.

Thank you!

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

No branches or pull requests

2 participants