Skip to content

Getting 'FAILURE: Build failed with an exception.' #1

@ncherry

Description

@ncherry

I was successful in cloning the DriverWireServer and then decide to follow the Readme when I ran into this:

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
...
$ gradle clean build fatCapsule

FAILURE: Build failed with an exception.

* Where:
Build file '/home/njc/dev/git/DriveWireServer/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating root project 'DriveWireServer'.
> Could not find method plugins() for arguments [build_fu6qpuj0dlvij0ah77q0ihogm$_run_closure1@68befcba] on root project 'DriveWireServer'.

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

BUILD FAILED

Total time: 3.781 secs
$ java -version
java version "1.7.0_181"
OpenJDK Runtime Environment (IcedTea 2.6.14) (7u181-2.6.14-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.181-b01, mixed mode)

Since I also had Oracle Java 1.8.0 131 installed (in /usr/local/jdk1.8.0_131, I amended the path to put that Java first:

export PATH=/usr/local/jdk1.8.0_131/bin:$PATH

Work around:

I know this may not be the best way to setup Java under Linux but it does work under all Unix distributions. I'll try a later version of Java also. I think I'm a bit out-of-date

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions