Error trying to compile appearance in IntelliJ

1

This is my first question on this site, I will try to be succinct. I'm working with aspect-oriented programming, I've been working with Eclipse. However, when trying to do the same used IntelliJ IDEA, I came across the following error:

Information:19/03/18 19:04 - Compilation completed with 2 errors and 0 warnings in 12s 856ms Error:ajc: invalid source option, source is either '1.3' or '1.4': 1.9 Error:Internal error: bad args

This example has been taken from this site >, I did exactly as it is, except for step 18 (instead of selecting all .jar downloaded, I only selected aspectjrt.jar as described in this tutorial )

This is the configuration of my machine:

Linux renan-Inspiron-3437 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux java version "9.0.4" Java(TM) SE Runtime Environment (build 9.0.4+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

This is the source code of the application I'm trying to run:

public aspect World {

    pointcut greeting() : execution (* Hello.sayHello(..));

    after() returning() : greeting() {
        System.out.println("World");
    }
}

public class Hello {

    public static void main(String[] args) {
        sayHello();
    }

    public static void sayHello() {
        System.out.print("Hello ");
    }
}

Here are some screenshots of my IDE configuration:

I would like to thank all those who are willing to help me.

    
asked by anonymous 19.03.2018 / 23:45

0 answers