Hello,
First of all, pay attention that metagenomic classification is available on Linux and macOS only and isn't available for Windows.
The second thing is that the best way to install all required configurations for metagenomic classification workflows is to use the UGENE online-installer, which you can download from the following page:
http://ugene.net/download.html (see the attached picture 1).
If you want to set up it manually you have to do the following: go to the UGENE folder and open the "data" folder. Here you need to create the folder called "ngs_classification". In this folder create folders "clark", "diamond", "kraken" and "metaphlan2", download the corresponding databases from the "Download all" page (
http://ugene.net/download-all_html ) and put them into corresponding folders (the "clark" example on picture 2). The taxonomy should be located in the "ngs_classification" folder (picture 3). Also, you need to download the full pack of External tools.
As far as I am concerned, the best way is to install the "metagenomics" package with the online-installer.