You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2023/01/20 11:37:36 UTC
[GitHub] [age] abdulmanann opened a new issue, #581: gradle-wrapper.jar missing in jdbc driver
abdulmanann opened a new issue, #581:
URL: https://github.com/apache/age/issues/581
I am encountering an issue when attempting to build the JAR file for the age JDBC driver in order to test it in my Java project. Upon running the command "./gradlew assemble" using the Gradle wrapper, I receive the following error message:
```bash
./gradlew assemble
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
```
I have verified that the gradle/wrapper directory is missing the gradle-wrapper.jar file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] AbdulSamad4068 commented on issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "AbdulSamad4068 (via GitHub)" <gi...@apache.org>.
AbdulSamad4068 commented on issue #581:
URL: https://github.com/apache/age/issues/581#issuecomment-1544541244
You have to ensure that file is present in the "gradle/wrapper" directory of your project. Ensure it hasn't been accidentally deleted or moved.
verify that you have a valid Gradle installation on your system and that the correct Gradle version is specified in your project's configuration. Check the "gradleVersion" property in files like "build.gradle" or "settings.gradle" and make any necessary corrections.
If the issue persists, you can regenerate the Gradle wrapper files. Use the appropriate command, either `gradle wrapper` or `gradlew wrapper`, in your project's root directory. This will recreate the necessary Gradle wrapper files based on your Gradle installation and project configuration.
Now build the JAR file, execute the command `./gradlew assemble` in your project's root directory. This will initiate the build process using the Gradle wrapper.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] mahinash26 commented on issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "mahinash26 (via GitHub)" <gi...@apache.org>.
mahinash26 commented on issue #581:
URL: https://github.com/apache/age/issues/581#issuecomment-1536495660
You are seeing an error message when attempting to build the JAR file for the age JDBC driver using the Gradle wrapper. The error message suggests that there may be an issue with the Gradle wrapper configuration in your project. To resolve the issue, try running the **./gradlew wrapper** command to download and install the necessary wrapper files, verify that the **gradle-wrapper.jar** file is present in the **gradle/wrapper** directory, and delete the gradle and .gradle directories if necessary. If none of these steps work, try manually downloading and installing the Gradle distribution for your project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] fatimafatimaprogrammer commented on issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "fatimafatimaprogrammer (via GitHub)" <gi...@apache.org>.
fatimafatimaprogrammer commented on issue #581:
URL: https://github.com/apache/age/issues/581#issuecomment-1398835950
Observing this error message
Your gradle wrapper is missing, broken or corrupted.
**Restoring gradle wrapper:**
It used to be that you needed to add a wrapper task to your build.gradle to restore gradle wrapper and all its dependencies. For instance:
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}
Newer versions of gradle do not require this. It is now a built-in task. Just run:
gradle wrapper
You can also supply additional flags to specify versions etc
gradle wrapper --gradle-version 6.2 --distribution-type all
When you run this task, a gradle wrapper script, and the required jar files are added to your source folders. Properties are stored in gradle/wrapper/gradle-wrapper.properties
(You may need to install gradle locally to run this. brew install gradle on mac for instance. See more detailed instructions [here](https://docs.gradle.org/current/userguide/installation.html#installation))
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] abdulmanann closed issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "abdulmanann (via GitHub)" <gi...@apache.org>.
abdulmanann closed issue #581: gradle-wrapper.jar missing in jdbc driver
URL: https://github.com/apache/age/issues/581
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] abdulmanann commented on issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "abdulmanann (via GitHub)" <gi...@apache.org>.
abdulmanann commented on issue #581:
URL: https://github.com/apache/age/issues/581#issuecomment-1399070203
Yes, it will work but there will be no point of using the gradle wrapper then. I have added the missing jar file and updated the README in PR #584. Kindly look into it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] abdulmanann commented on issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "abdulmanann (via GitHub)" <gi...@apache.org>.
abdulmanann commented on issue #581:
URL: https://github.com/apache/age/issues/581#issuecomment-1546954873
Thank you for your responses. The issue lies because the wrapper file is missing. As I stated above, installing gradle will work but there will be no point in using the gradle wrapper then. I have added the missing jar file in PR https://github.com/apache/age/pull/584. That will add the missing jar file and then there will be no need to install the gradle separately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] fatimafatimaprogrammer commented on issue #581: gradle-wrapper.jar missing in jdbc driver
Posted by "fatimafatimaprogrammer (via GitHub)" <gi...@apache.org>.
fatimafatimaprogrammer commented on issue #581:
URL: https://github.com/apache/age/issues/581#issuecomment-1399191496
> Yes, it will work but there will be no point of using the gradle wrapper then. I have added the missing jar file and updated the README in PR #584. Kindly look into it
okay thats Great
If this has answered you question adequately, please close the ticket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org