qianxuecheng / openjdk-osx-build

Automatically exported from code.google.com/p/openjdk-osx-build
0 stars 0 forks source link

Oracles AppBundler doesn't work anymore with u6 #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Download Oracles AppBundler ant task: 
http://java.net/projects/appbundler/downloads
2. Create an Java mac app with bundle u6 JRE from here.
3. Start JavaAppLauncher

What is the expected output? What do you see instead?

=> app doesn't start
=> Error:
2012-06-13 07:59:46.791 JavaAppLauncher[4087:20f7] Could not load JRE from The 
operation couldn\U2019t be completed. (NSCocoaErrorDomain error 4.).: (
    0   CoreFoundation                      0x00007fff8d663a86 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8e7ec410 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8d66385c +[NSException raise:format:] + 204
    3   JavaAppLauncher                     0x0000000103ba691a launch + 762
    4   JavaAppLauncher                     0x0000000103ba64f6 main + 102
    5   JavaAppLauncher                     0x0000000103ba6484 start + 52
    6   ???                                 0x0000000000000009 0x0 + 9
)
logout

What version of the product are you using? On what operating system?
Mac OS X 10.8 DP3
OpenJDK7 u6 from: 
http://code.google.com/p/openjdk-osx-build/downloads/detail?name=OpenJDK-OSX-1.7
-universal-u-jre-jdk7u6-b13-20120608.dmg&can=2&q=

Please provide any additional information below.
AppBundler works with u4 but only in 64bit.
With u6 the AppBundler (or JavaAppLauncher) can't load the JRE bundle...

Original issue reported on code.google.com by software...@googlemail.com on 13 Jun 2012 at 8:02

GoogleCodeExporter commented 9 years ago
Could you provide a sample ant project with AppBundler ?

Original comment by henri.gomez on 21 Jun 2012 at 3:38

GoogleCodeExporter commented 9 years ago
<bundleapp outputdirectory="${dist.home.mac}"
                   name="${app.name}"
                   displayname="${app.name}"
                   identifier="${app.bundleid}"
                   shortversion="${app.version.3}"
                   mainclassname="${app.mainclass}"
                   icon="${conf}/${app.name}.icns"
                   copyright="${app.copyright}"
                   applicationCategory="public.app-category.productivity"
                   signature="${signature}"
                >
            <classpath dir="${lib}" includes="**/*.jar"></classpath>

            <runtime dir="${bundledJRE.mac}/Contents/Home">
                <include name="**/*"></include>
            </runtime>

            <librarypath dir="${basedir}">
                <include name="*.dylib"></include>
                <include name="*.jnilib"></include>
            </librarypath>

            <option value="-Xms64M"/>
            <option value="-Xmx512M"/>
            <option value="-Dapple.laf.useScreenMenuBar=true"/>
            <option value="-Xdock:name=${app.name}"></option>
            <option value="-Xdock:icon=../Resources/${app.name}.icns"></option>
            <!--<option value="-Djava.library.path=./Contents/Java"></option>//-->
            <option value="-d32"></option>
        </bundleapp>

Original comment by i...@ultramixer.com on 22 Jun 2012 at 10:42

GoogleCodeExporter commented 9 years ago
Could you provide a full sample project (source and ant file), so I could 
replay problem here ?
I'm not familiar with AppBundler at all.

Thanks

Original comment by henri.gomez on 27 Jun 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Unless you provide a ready to use sample, I won't be able to help you and I'll 
close this one

Original comment by henri.gomez on 2 Jul 2012 at 8:35

GoogleCodeExporter commented 9 years ago
No more input, closing this one

Original comment by henri.gomez on 13 Jul 2012 at 10:27

GoogleCodeExporter commented 9 years ago
it works now

Original comment by i...@ultramixer.com on 16 Jul 2012 at 8:44