How to separate JavaScript from Java code

Hello Im using Spring boot with vaadin and I want to combine Javascript with Vaadin.
Everything is working when Javascript file is in the same package that Java class in Compilled Code - target package
SO I have to manualy code at targeg package, not in resources :slight_smile:

I have tried everything - including adding resources from Spring and different paths and always the same error, about bad path.

At the screenshot is my desired configuration. Does anybody knows how to achive it ??

All the best.
26919.png

AFAIK simply put js_text_label.js file in src/main/resources/com/tech should work

HTH
Marco

Wow, I spent 3 hours on this problem : D
I knew that it cant be hard.

THANK YOU MAN, you made my day.