If the title made sense to you, you probably already understand but here's the problem.
I use NetBeans for development but any
Java application that is started by the launcher has this problem.
Java searches for external dynamic libraries based on java.library.path which is set when the JVM starts from LD_LIBRARY_PATH. But Ubuntu doesn't let us set LD_LIBRARY_PATH anywhere except in the user's .profile (or .cshrc..) so it's not available to anything run from the application launcher.
Java doesn't use ld.so.conf and bash doesn't allow dots (.) in environment variable names.
There must be a way to affect LD_LIBRARY_PATH or java.library.path for programs started by the launcher but I can't find it.
Has anyone solved this? I have come up with a few work-arounds that work for development but none I'd like to include in a release.