# Issues with compileJava

**URL:** <https://discuss.gradle.org/t/issues-with-compilejava/15475>\
**Category:** Help/Discuss\
**Created:** [March 29, 2016, 9:58am UTC](https://discuss.gradle.org/t/issues-with-compilejava/15475 "2016-03-29T09:58:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zackzulg](https://avatars.discourse-cdn.com/v4/letter/z/7feea3/32.png) [@zackzulg](https://discuss.gradle.org/u/zackzulg)\
**Post date:** [March 29, 2016, 9:58am UTC](https://discuss.gradle.org/t/issues-with-compilejava/15475/1 "2016-03-29T09:58:50Z")

</div>

Hi guys,  
I’m beginner with gradle and I want to create my first app using gradle and java. But when I run gradle in command line ( I write gradle myTask), My command line show this error : Execution failed for task ‘:compileJava’. I tried to add JDK to my System variables and add compile files(“${System.properties[‘java.home’]}/…/lib/tools.jar”) to my gradle.build file but the problem stills the same.  
Here is my gradle.build :

> apply plugin: ‘java’  
> apply plugin: ‘eclipse’  
> repositories {  
> //jcenter()  
> mavenCentral()  
> mavenLocal()  
> maven {  
> url ‘[http://maven.oschina.net/content/groups/public/](http://maven.oschina.net/content/groups/public/)’  
> }  
> }  
> task hello(type: Test)  
> dependencies {  
> compile “io.vertx:vertx-core:3.2.1”  
> compile “io.vertx:vertx-unit:3.2.1”  
> compile “io.vertx:vertx-web:3.2.1”  
> compile “io.vertx:vertx-rx-java:3.2.1”  
> compile “org.slf4j:slf4j-api:1.7.13”  
> }

Any idea ?  
regards.
