# \[Solved\] Hail compilation error

**URL:** <https://discuss.hail.is/t/solved-hail-compilation-error/65>\
**Category:** Help \[0.1\]\
**Created:** [October 24, 2016, 3:33pm UTC](https://discuss.hail.is/t/solved-hail-compilation-error/65 "2016-10-24T15:33:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![foisys](https://avatars.discourse-cdn.com/v4/letter/f/a5b964/32.png) [@foisys](https://discuss.hail.is/u/foisys)\
**Post date:** [October 24, 2016, 3:33pm UTC](https://discuss.hail.is/t/solved-hail-compilation-error/65/1 "2016-10-24T15:33:28Z")

</div>

HI there,

I am trying to install Hail on our server and I get the following error:

== Expanded type of tree ==

TypeRef(  
pre = TypeRef(TypeSymbol(class SampleQC extends Command))  
TypeSymbol(class Options extends SampleQC.BaseOptions)  
)

uncaught exception during compilation: scala.reflect.internal.Types$TypeError  
:compileScala FAILED  
:compileScala (Thread[main,5,main]) completed. Took 1 mins 3.16 secs.

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:compileScala’.

> bad symbolic reference. A signature in ResponseOps.class refers to term time  
> in package java which is not available.  
> It may be completely missing from the current classpath, or the version on  
> the classpath might be incompatible with the version used when compiling ResponseOps.class.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 10.724 secs  
Stopped 1 compiler daemon(s).

Any clue on solving this? Thanks in advance

S. Foisy  
Project manager - Bioinformatics  
Genomic Medecine of Inflammation  
Montreal Heart Institute Research Center

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [October 24, 2016, 3:40pm UTC](https://discuss.hail.is/t/solved-hail-compilation-error/65/2 "2016-10-24T15:40:45Z")

</div>

Hello! I hope we can get this fixed quickly.

A few questions:

1. What version of gradle are you running? Using the gradle wrapper in the hail directory (`./gradlew`) uses the appropriate version automatically
2. What version of java do you have installed? Hail requires Java 8.

---

<div class="post-metadata">

**Author:** ![jbloom](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/jbloom/32/109_2.png) [@jbloom](https://discuss.hail.is/u/jbloom)\
**Post date:** [October 24, 2016, 3:43pm UTC](https://discuss.hail.is/t/solved-hail-compilation-error/65/3 "2016-10-24T15:43:07Z")

</div>

In particular, the missing “time” term occurs when using Java 7, as this API is new in Java 8:  
[http://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html](http://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html)

---

<div class="post-metadata">

**Author:** ![foisys](https://avatars.discourse-cdn.com/v4/letter/f/a5b964/32.png) [@foisys](https://discuss.hail.is/u/foisys)\
**Post date:** [October 24, 2016, 3:53pm UTC](https://discuss.hail.is/t/solved-hail-compilation-error/65/4 "2016-10-24T15:53:29Z")

</div>

Hi,

That would explain the problem… My Java is Java 7; I’ll work on updating everything and check again…

---

<div class="post-metadata">

**Author:** ![foisys](https://avatars.discourse-cdn.com/v4/letter/f/a5b964/32.png) [@foisys](https://discuss.hail.is/u/foisys)\
**Post date:** [October 24, 2016, 4:49pm UTC](https://discuss.hail.is/t/solved-hail-compilation-error/65/5 "2016-10-24T16:49:50Z")

</div>

Hi,

Upgrading everything did the trick 😉 Thanks for the inputs.

S
