Unable to create Run / Debug configuration for AspectJ project in Eclipse

I have a problem, I cannot properly start / debug my AspectJ project in Eclipse. My launch options are set to Run a Resource or, if this is not possible, run a project. This is what I want and what I want, I do not advise me, please, change it.

My problem is that I have a project with 2 files:

  • Mainclass.java
  • MainclassHook.aj

If I select Mainclass.java in the project explorer, it will ask me how to execute it (this will happen if I select the project itself (but in the project it will look for the main classes)):

Launch project / Mainclass.java

Each time the project starts, this will lead to a new start / debug configuration:

enter image description here

MainclassHook.aj open, ( Eclipse , , )

enter image description here

, AspectJ/Java Run/Debug Settings , - AspectJ:

Only shows java configurations

, Eclipse , , /, AspectJ/Java

+4
1

, . , ? , , . Java-, 100% AspectJ. AspectJ, (, src ), main, .

- AJDT ( AspectJ), . , StackOverflow.

+2

Source: https://habr.com/ru/post/1568448/


All Articles