Locating the path of a runtime dependency archive file
Joined: Jan 14, 2004
I need to locate the path of the file - rampart.mar which I have placed in the folder <proj>/lib
To locate the path at runtime, I tried executing the command :
I realised that since my output folder in eclipse is set to build/classes , all the resource files that are placed under the src folder can be read in the above manner ,since post compilation they will be present in the folder build/classes.
How can I read the 'rampart.mar' file which is more of a runtime dependency jar?
So after getting this url to where the current class is, you could do some strip off the last part of it to obtain the parent folder, maybe remove the file:// prefix with,
and then we can use it to do a new File(parentFolder, relativePathToMarFile) and pass that into axis2
Error: Keyboard not attached. Press F1 to continue.