The OpenJDK 7 update 40 build 43 x86_64 bundle does not work when used as a bundle plugin within an Application (e.g. added as MyApp.app/Content/PlugIns/jre.bundle)
The reason seems to be that
stain@vmint /tmp/12/Contents/MacOS $ ls -al
total 68
drwxr-xr-x 2 stain stain 4096 Sep 19 07:14 .
drwxr-xr-x 4 stain stain 4096 Sep 19 07:14 ..
-rwxr-xr-x 1 stain stain 61432 Sep 19 07:14 libjli.dylib
When starting, libjli.dylib will complain about not finding libjava - because the relative paths are wrong.
Instead, this should be instead be a symlink as in the Oracle downloads:
stain@vmint /tmp/12/Contents/MacOS $ ls -al
total 8
drwxr-xr-x 2 stain stain 4096 Jan 16 09:25 .
drwxr-xr-x 4 stain stain 4096 Sep 19 07:14 ..
lrwxrwxrwx 1 stain stain 32 Jan 16 09:24 libjli.dylib -> ../Home/jre/lib/jli/libjli.dylib
When I add this change, the bundle works fine as a plugin.