dragontree101 / openjdk-osx-build

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

Codesigning and OpenJDK JRE issue #33

Closed GoogleCodeExporter closed 8 years ago

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

After building the OpenJDK 7 JRE and embedding it into my .app, it could 
successfully run with the embedded JRE. I code signed the main .app bundle and 
put in the sandbox entitlements. Then, I submitted it to the App Store…
iTunes Connect soon replied saying I'd have to individually sandbox each of the 
execs in the directory: 

my.app/Contents/PlugIns/jre1.7.0.jre/Contents/Home/bin/

However after doing this, my .app stopped working. Here's the error message I'm 
getting:

Error: could not find libjava.dylib
Failed to GetJREPath()
2012-07-04 21:25:18.285 JavaAppLauncher[2084:2d03] failed to JNI_CreateJavaVM 
(-1): CFBundle 0x7ff8dc400790 
</Applications/my.app/Contents/PlugIns/jre1.7.0.jre> (framework, loaded): (
    0   CoreFoundation                      0x00007fff923e1716 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8d036470 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff923e14ec +[NSException raise:format:] + 204
    3   JavaAppLauncher                     0x00000001086b526d -[JavaAppLauncher findAndLoadJVM] + 861
    4   Foundation                          0x00007fff91d93842 __NSThread__main__ + 1345
    5   libsystem_c.dylib                   0x00007fff88baa782 _pthread_start + 327
    6   libsystem_c.dylib                   0x00007fff88b971c1 thread_start + 13
)

What version of the product are you using? On what operating system?

I'm running Mountain Lion (though this shouldn't make a difference) and using 
OpenJDK 7.

Please provide any additional information below.

Original issue reported on code.google.com by mukund.t...@gmail.com on 4 Jul 2012 at 1:36

GoogleCodeExporter commented 8 years ago
This is not related to OpenJDK OSX Build but to OpenJDK 7 for OSX itself.
Please open an issue in jdk7u bug databases

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