To deploy kjar you have to upload kjar into server artifact repository(Authoring-->Artifact repository-->Upload).Once you upload artifact into server repository you can use following REST API to deploy kjar.
Hope it helps..
Thank you for the response.
The point is that I want to deploy the Process/Package automatically through JAVA code and uploading it manually will not help me. Do you have any idea how to deploy it automatically through JAVA code or REST API?