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:

0200000001fcd54594bba82795afa84ebf500b3944546117c9371e951fc4539e7455ebafb2000000ffffffffff01b8f902000000000017a914b4e6b1471691d9e9e9e54cd19c85bbbbbbbbf

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.