It's not possible in the general case, but for certain limited cases you can do it. Get the current ClassLoader, and if it's a URLClassLoader, then get its URLs, turn them into URIs, turn those into Files (if they are file URIs), and then list the files in the File object corresponding to the directory representing your package.
The question though is why? What are you trying to accomplish that you think you need to do this?
I've got no option but to sell you all for scientific experiments. Or a tiny ad: