hg: macosx-port/macosx-port/jdk: Creating .jre sub-bundle inside .jdk bundle. First step towards embedding a .jre inside of self-launching .app bundles.

Mike Swingler swingler at apple.com
Wed Sep 14 14:35:37 PDT 2011


Actually, Henri, have you considered not using an installer package at all?

I'm making a minor change to the makefile to create a symlink to /Library/Java/JavaVirtualMachines to enable Oracle to create a simple .dmg that uses drag-installing.

If you just wrap the entire contents of build/macosx-universal/j2sdk-bundle/ into a disk image, you'll have the top-level of a DMG (maybe there should be a nice background image, and the icons should be positioned).

If you want multiple .jdk's to be installed side-by-side, rename "1.7.0.jdk" to "1.7.0_2011-09-14_03-00.jdk" or some other date/time encoding.

Just a thought,
Mike Swingler
Java Engineering
Apple Inc.

On Sep 14, 2011, at 2:10 PM, Henri Gomez wrote:

> I made a try and removed jre/bundle symlink to ../.. and packagemaker
> succeed to build .pkg.
> 
> Hope it will help
> 
> 
> 2011/9/14 Henri Gomez <henri.gomez at gmail.com>:
>> More on this change.
>> 
>> I suspect symlink introduced to broke packagemaker used to build .pkg
>> included in .dmg.
>> this one fail and core dump.
>> 
>> under ./j2sdk-bundle/1.7.0.jdk/Contents/Home
>> 
>> mbp:Home henri$ ls -l
>> total 44592
>> drwxr-xr-x   3 henri  staff       102 Sep 14 22:03 1.7.0.jre
>> -r--r--r--   1 henri  staff      1503 Sep 14 22:02 ASSEMBLY_EXCEPTION
>> -r--r--r--   1 henri  staff     19263 Sep 14 22:02 LICENSE
>> -r--r--r--   1 henri  staff    172135 Sep 14 22:02 THIRD_PARTY_README
>> drwxr-xr-x  40 henri  staff      1360 Sep 14 22:02 bin
>> lrwxr-xr-x   1 henri  staff        10 Sep 14 22:03 bundle -> jre/bundle
>> drwxr-xr-x  10 henri  staff       340 Sep 14 22:02 demo
>> drwxr-xr-x   9 henri  staff       306 Sep 14 22:02 include
>> lrwxr-xr-x   1 henri  staff        23 Sep 14 22:03 jre ->
>> 1.7.0.jre/Contents/Home
>> drwxr-xr-x   9 henri  staff       306 Sep 14 22:03 lib
>> drwxr-xr-x   5 henri  staff       170 Sep 14 22:03 man
>> -rw-r--r--   1 henri  staff       218 Sep 14 22:03 release
>> drwxr-xr-x   7 henri  staff       238 Sep 14 22:02 sample
>> -rw-r--r--   1 henri  staff  22618091 Sep 14 22:02 src.zip
>> 
>> mbp:Home henri$ ls -l jre/bundle
>> lrwxr-xr-x  1 henri  staff  5 Sep 14 22:03 jre/bundle -> ../..
>> 
>> mbp:Home henri$ ls -l jre/bundle/../..
>> total 16
>> drwxr-xr-x  16 henri  staff   544 Sep 14 22:03 Home
>> -rw-r--r--   1 henri  staff  1204 Sep 14 22:03 Info.plist
>> lrwxr-xr-x   1 henri  staff    29 Sep 14 22:03 MacOS ->
>> Home/1.7.0.jre/Contents/MacOS
>> mbp:Home henri$
>> 
>> Isn't there a loop somewhere broking packagemaker traversal process ?
>> 
>> Cheers
>> 
>>> 2011/9/13  <swingler at apple.com>:
>>>> Changeset: 86d6d9ef0563
>>>> Author:    swingler at apple.com
>>>> Date:      2011-09-13 00:26 -0700
>>>> URL:       http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/rev/86d6d9ef0563
>>>> 
>>>> Creating .jre sub-bundle inside .jdk bundle. First step towards embedding a .jre inside of self-launching .app bundles.
>>>> 
>>>> ! make/common/Release-macosx.gmk
>>>> - src/macosx/bundle/Info.plist
>>>> + src/macosx/bundle/JDK-Info.plist
>>>> + src/macosx/bundle/JRE-Info.plist
>>>> 
>>>> 
>>> 
>> 



More information about the macosx-port-dev mailing list