Matomo for desktop application

Hi,

My application is a desktop application built up in java. It is a normal java project(not maven/gradle). Can you please help me in implementing matomo for it.

Hi,

You can either use

or send HTTP requests to the tracking API yourself:
https://developer.matomo.org/api-reference/tracking-api

Could you please let me know which methodology is easier and moreover my applications is a normal java project(Not Gradle or Maven)?