I want to use my regular internet connection for JDBC and VPN for the parts of the program which uses HTMLUnit(web testing library). My computer has 2 network cards if that makes a any difference. What is the best approach to achieve this?
this is completly out of scope of this forum since it has nothing to do with neither Java (which is this forum for) nor oracle software (which is this whole site for).
Your best chance is to ask the vendor of your VPN client how to achieve this.