Error when using ./gradlew deploy for tutorial "Could not determine java version from '9.0.4'."

Enonic version:: Enonic XP 6.14.0
OS: Win10

Hi,
I have just started learning the application but am having a lot of trouble setting up the tutorial app found here: http://xp.readthedocs.io/en/stable/tutorials/my-first-app/initialize-project.html

I have initialised it correctly and have this as the file structure:

But when I do to the next step using: ./gradlew deploy I get the error.

Any idea on how to correct the error? Cheers

Hi and congratulations with your first Enonic app! :slight_smile:

What kind of error do you get? Can you copy-paste it here?

The error as described in the title, here is a screenshot:

Looks like you have Java 9 installed, which is not supported yet. The error message is a bit confusing, we will try to improve that.

You should download and install Java JDK 8 to run XP.

Select the operating system that applies in this page:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

1 Like

Ahh see here I was looking to try and update gradle and everything else when I should have just rolled back a java version. Thanks for the really quick reply appreciate it!

2 Likes