The goal is to build tools and applications that have both web-based and standalone versions for multiple OS's (*nix, Mac, Win, etc.).
I've got a general idea of how to architect software that is flexible enough to accomplish this, but ...
Is there a language or framework that's designed for or uniquely suited to this task?
EDIT:
Thanks all for your answers, but I wasn't specific enough in my question.
To make things a bit more complicated (and more useful for my purposes),
- The OS-specific distributions need to have minimal dependencies, and
- the standalone versions are truly "offline".
"This application requires X library to run" is unacceptable, because non-technical people need to be able to download and run without much trouble. Java is out, unless a full JVM with libraries can be packaged-in and distributed for a few extra megabytes for most platforms (is that possible?).
I do not know how robust Python's py2exe and py2app are, but I was headed in that general direction.