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

Build errors #375

Closed
lukebrewerton opened this issue Jan 10, 2018 · 2 comments
Closed

Build errors #375

lukebrewerton opened this issue Jan 10, 2018 · 2 comments

Comments

@lukebrewerton
Copy link

When running ./gradlew clean I get the following errors preventing full compilation:-

FAILURE: Build failed with an exception.

  • Where:
    Build file '/root/projects/alfio/build.gradle' line: 225

  • What went wrong:
    Could not compile build file '/root/projects/alfio/build.gradle'.

startup failed:
build file '/root/projects/alfio/build.gradle': 225: unable to resolve class java.time.format.DateTimeFormatter
@ line 225, column 1.
import java.time.format.DateTimeFormatter
^

build file '/root/projects/alfio/build.gradle': 224: unable to resolve class java.time.ZonedDateTime
@ line 224, column 1.
import java.time.ZonedDateTime
^

build file '/root/projects/alfio/build.gradle': 223: unable to resolve class java.time.ZoneId
@ line 223, column 1.
import java.time.ZoneId
^

@cbellone
Copy link
Member

Hi @lukebrewerton,

could you please share the output of the following commands:

$ java -version
$ javac -version 

many thanks
Celestino

@lukebrewerton
Copy link
Author

Sorted it, I installed JDK8 but 7 was already installed and was being used. Using Alternatives to switch to JDK8 resolved the issue

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