You need to compile the whole program as a stand alone version that means compiling in the library files with it, but it will then need to be compiled ONLY for the operating system it is written for.
The best I can suggest is to pack a JRE in with your compiled program.