17. A non-transitory computer-accessible storage medium, comprising program instructions, wherein the program instructions are computer-executable to implement a portable stub generator configured to: obtain an indication of a native language function to be called from a platform-independent language program in a virtual machine implemented on the system; and generate a stub in accordance with a tokenized internal representation of the virtual machine, wherein the stub comprises tokenized internal representation instructions configured to invoke the indicated native language function from a platform-independent language function at runtime of the platform-independent language programs; wherein the tokenized internal representation instructions of the generated stub are configured to be compiled with platform-independent language code by a compiler for the virtual machine on the system or to be interpreted with platform-independent language code by an interpreter for the virtual machine on the system.
18. The non-transitory computer-accessible storage medium as recited in claim 17 , wherein the virtual machine is a Java™ virtual machine, wherein the platform-independent language is Java™, and wherein the tokenized internal representation is Java™ bytecode.