# \* What went wrong: Task 'run' not found in root project

**URL:** <https://discuss.gradle.org/t/what-went-wrong-task-run-not-found-in-root-project/25817>\
**Category:** Help/Discuss\
**Created:** [February 12, 2018, 5:09pm UTC](https://discuss.gradle.org/t/what-went-wrong-task-run-not-found-in-root-project/25817 "2018-02-12T17:09:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabaharan\_SDET](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@prabaharan\_SDET](https://discuss.gradle.org/u/prabaharan_SDET)\
**Post date:** [February 12, 2018, 5:09pm UTC](https://discuss.gradle.org/t/what-went-wrong-task-run-not-found-in-root-project/25817/1 "2018-02-12T17:09:06Z")

</div>

While am trying to build the build.gradle file from eclipse project, build got failed and throwing this exception.  
FAILURE: Build failed with an exception.

- What went wrong:  
Task ‘run’ not found in root project ‘Gradlesetup’.

- Try:  
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 0s

Am working in testNG framework for mobile automation. Kindly let me know if am missing anything. I have set environment variables everything ad executed ./gradlew from my terminal on mac. At that time build got successful.

> Task :help

Welcome to Gradle 4.5.1.

To run a build, run gradlew …

To see a list of available tasks, run gradlew tasks

To see a list of command-line options, run gradlew --help

To see more detail about a task, run gradlew help --task

BUILD SUCCESSFUL in 0s  
1 actionable task: 1 executed  
If am executing from eclipse then build get failed.
