Hybrid graphics - javaws application not running on nvidia card...nvidia smi only shows /usr/bin/X

So I have my laptop setup with nvidia and used the procedures on the link at the bottom to get it setup so my display runs on the graphics card.

When I open a javaws application, it is still trying to run on the integrated gpu…I can finally open nvidia-settings but not seeing anything I can setup to fix this. How do I make application open on the nvidia graphics card instead of the intel integrated chip?

Installed nvidia drivers on centos but opengl is not using nvidia (appears part of system is using integrated graphics still no matter what I try) - GPU Unix Graphics / Linux - NVIDIA Developer Forums

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.