I suppose it could have been a fat-jar thing: if the jar contains its non-java dependencies for my platform, then everything just works. If the native libs are separate, then sure, its a similar issue as described elsewhere here.
You have a similar kind of pain when you have pip and apt trying to manage the system python installation.
This is all about running code in an uncontrolled environment.
So no, there aren't.
Now, I have a project I'd like to try with per-process mounts of dependencies using unionfs. It'd be a lot of work, and a lot could go wrong, but would solve a lot of problems.
Precisely. Virtualenvs solve part of the problem by isolating the python code and its dependencies - but not all of the code.
Apparently extending this behavior would cause security issues of an unknown nature...
The issue arises when you're calling out to something written in, say, C. You'll have the same pain in java if you start using JNI to call across the JVM boundary. It just crops up more in Python because C extensions get used a lot in Python.
Addendum:
[1] By this, I mean within the boundaries of the runtime environment and not using things like Python's C extension API or JNI. 'Native' is a poor choice of words.