Questions tagged [ajc]

4 questions
0
votes
0 answers

Moving compilation from JDK17 to AspectJ Compiler (ajc)

I have a project I am working on which is currently being compiled using JDK 17. I am working on adding advices using AspectJ and wants to use the compile time weaving for it. I am trying to compile the code - 'Existing Source Code + AspectJ…
user762421
  • 503
  • 1
  • 12
  • 24
0
votes
1 answer

Cannot run ajc compiled class file in the terminal using Java

I trying to learn aspectj for a project. I wish to run the java files from the terminal using ajc and java but I am unable to do so. I have 2 files in my directory HelloWorld.java and HWTracer.aj Contents of Helloworld.java public class HelloWorld…
Dunkan
  • 3
  • 2
0
votes
1 answer

Problem in running a project with aspectJ in IntelliJ IDEA 2022.2.3 (Community Edition)

I am trying to run a project with aspectJ, rather than Java, in IntelliJ IDEA. I had done it before by simply putting "aspectj-1.9.6" in a "Lib" folder and setting the folder "as Library". But I tried it again today and it is not working. I think it…
nsh
  • 15
  • 1
  • 5
0
votes
1 answer

AspectJ (ajc) with Modules

I am using AspectJ 1.9.7 and I am trying to compile a modular application with ajc. Let's suppose I have a single module called test and the following tree: . └── test ├── aspectj │   ├── Main.java │   └── TestAspect.aj └──…
Marco Luzzara
  • 5,540
  • 3
  • 16
  • 42