I want to read and copy file from jar file(for eg. application.xml from EAR )located on remote server to local machine. when i search on net for this, i found java.util.jar.JarFile API. This API read jar only from local machine as it takes only string as input and not URL for jar location in constructor. I know org.apache.commons.net.ftp.FTPClient API.This API can copy any file or even jar from remote server to local machine. But my requirement is to copy only single file from jar located on remote server.
Please help me in this regard .
Thanks
Sameer
I think you might have a better luck if you try creating your own downloading mechanism, something along these lines: