raw transaction – How to sign rawtransaction with a private key

How to sign a raw transaction with a private key.
that's my raw transaction:


which is made by bitcoin-cli createrawtransaction.

This raw transaction made in the server.

And I want to sign this raw transaction on my local PC.
How to sign this with a private key?

Please let me know with the sample code.
My language is java.

Thank you so much.