Ref. Image
in the settings of your application in studio pro, you can choose the Java version in the Runtime tab
1. Open Studio Pro > Run App
2. Edit > Preferences > Deployment > JDK
3. App Explorer > Settings > Runtime > Java version