How to make a succesful connection from java side to orthanc .i tried with pixel med library but it shows error
You can use Orthanc REST API. See documentation here: https://book.orthanc-server.com/users/rest.html
See also for instance the work shared in following post: https://groups.google.com/forum/#!topic/orthanc-users/lSJpale2Wr8
I hope this helps!
Just look at my code, I have made a Java app working with orthanc for several features