Skip to main content



      Home
Home » Language IDEs » AspectJ » Vaadin and AspectJ - main() or init() - compilers integration(The purpose of this topic is to find a way to communicate between Vaadin and AspectJ compiler)
Vaadin and AspectJ - main() or init() - compilers integration [message #1797843] Wed, 07 November 2018 06:07 Go to next message
Eclipse UserFriend
I've started a Vaadin project to try AspectJ with Vaadin and I realized that AspectJ compiler needs or search after the main() structure in the main class, where Vaadin uses an init() structure instead. Therefore AspectJ compiler reports an error which says "Lunch Error - Selection does not contain a main type".

I added an empty main() structure to the main class to avoid this error, which also worked but just to avoid the error, there happens nothing more. The code in the init() structure won't be executed.

I searched on the Internet for anything and tried to figure it out how I can connect both compilers with a bridge together, no result!

I will be thankful for any help!
Reza
Re: Vaadin and AspectJ - main() or init() - compilers integration [message #1798072 is a reply to message #1797843] Mon, 12 November 2018 03:30 Go to previous messageGo to next message
Eclipse UserFriend
I've tried combining AspectJ and Vaadin a few times, a few years ago however.

I think all that was needed was to insert the aspectJ dependency to the pom.xml file. For example like this:
<dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjrt</artifactId>
                <version>1.8.0</version>
</dependency>



You won't have to insert additional main() function, because it breaks the execution of the actual vaadin program like you said.
Re: Vaadin and AspectJ - main() or init() - compilers integration [message #1798204 is a reply to message #1798072] Wed, 14 November 2018 02:56 Go to previous message
Eclipse UserFriend
Thanks a lot, Sampo!
It works properly.
Previous Topic:Equivalent command for Maven -> Update Project
Next Topic:AspectJ - around advice and ProceedingJoinPoint
Goto Forum:
  


Current Time: Fri May 16 14:28:52 EDT 2025

Powered by FUDForum. Page generated in 0.03309 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top