Use or extend one or more screens from another cuba projects

I need to use or extend one or more screens from a jar file called app-web-0.1-SNAPSHOT.jar of another cuba projects. How can it be done?
My code shows no error on compilation but I am getting this runtime error: Template is not found, param

Hi Francesco,
Which version of the platform do you use? How do you generate the app-web-0.1-SNAPSHOT.jar file?

Hi Natalia.
The version of the platform is 6.2.7
I get app-web-0.1-SNAPSHOT.jar from OtherProject\modules\web\build\libs

The jar has been generated from Cuba Studio.

I edited build.gradle:

repositories {
        flatDir { dirs 'c:\\lib' }

configure(webModule) {
    configurations {
    dependencies {

Hi Natalia.
Can you please tell me where am I wrong?

Unfortunately, we cannot reproduce the problem. We will be able to help you if you send us a small sample project along with reproduction scenario that demonstrates the issue.

Thanks for your time (273.2K)

app-web-0.1-SNAPSHOT.jar (4.6K)

You should delete your changes from the build.gradle (flatDir { dirs ‘c:\lib’ } and compile(“”)). Then, open your project in the Studio and add your jar file like it is described here.

Can you change my example
Now i get this error:

17:52:03.640 ERROR com.haulmont.cuba.web.log.AppLog - Exception:
java.lang.NoClassDefFoundError: com/haulmont/cuba/gui/components/AbstractWindow