0

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 might be because I have updated my IntelliJ to version "2022.2.3". I saw in this link that for intelliJ version "2021.1", one should select "ajc" as the project compiler in IntellJ. But it seems that there is no such compiler option in IntelliJ version "2022.2" (as I looked at this link and also searched in this link).

I also tried to install and enable "AspectJ weaver" plugin, but I encounter the following error: "Plugin 'AspectJ weaver' failed to initialize and will be disabled. Please restart IntelliJ IDEA.". Someone has had the same problem in this post, but the answer doesn't work for me, as it refers to this link, which is not compatible with IntelliJ version 2022.2.3: enter image description here

So, I wonder whether aspectJ is not supported any more in IntelliJ? Does any one has any suggestion that I could use it with this version of IntelliJ? I do really appreciate any help.

Thanks in advance

nsh
  • 15
  • 1
  • 5
  • Please make sure that [AspectJ](https://plugins.jetbrains.com/plugin/4679-aspectj) plugin is [installed](https://www.jetbrains.com/help/idea/managing-plugins.html) and enabled. – Egor Klepikov Nov 14 '22 at 12:21
  • Hi @EgorKlepikov, thanks for your reply. I had tried to install "AspectJ" weaver plugin, but I encountered this error "Plugin 'AspectJ weaver' failed to initialize and will be disabled. Please restart IntelliJ IDEA". Even when I open the link you mentioned as [AspectJ](https://plugins.jetbrains.com/plugin/4679-aspectj), I see this message just below the "Get" button: "Not compatible with the version of your running IDE (IntelliJ IDEA 2022.2.3)" – nsh Nov 14 '22 at 14:57
  • @EgorKlepikov I also updated my question by adding problems regarding installing the plugin. – nsh Nov 14 '22 at 15:02

1 Answers1

0

IntelliJ IDEA is compatible with AspectJ. I am running the plugin on 2022.2.3 without any problems. But I use IDEA Ultimate, you use Community. Did you notice this in your screenshot?

Compatible with IntelliJ IDEA Ultimate

kriegaex
  • 63,017
  • 15
  • 111
  • 202
  • Hi. Thanks for your reply. Yes I had noticed that. But I wanted to use IDEA community, and strangely it worked before. – nsh Dec 12 '22 at 19:00