How to generate hosted login URL with JAVA

Hello all,
I want to generate URL to redirect user in hosted login okta interface.
How can i do this ? With which library ? Are there any examples ?

I work with maven and tomcat, with JAVA 18.


We have a Java Spring Boot library and a sample application that shows it being used to redirect the user to Okta to log the user into the OIDC application.

Thanks for your reply. I already looked this doc but i not use Spring Boot.
To execute my project i use Tomcat and zk Framework.
So is it possible to use this Java sping boot with my project configuration ? Or is there another way to do it ?