Java keystores use the jks format, this is functionally similar to a pfx file in that you have a store and a password.
To convert from pfx to jks
keytool -importkeystore -srckeystore pfxkeystore.pfx -srcstoretype pkcs12 -destkeystore jkskeystore.jks -deststoretype JKS |