JRELoadError
Emmanuel Puybaret
puybaret at eteks.com
Mon Mar 9 17:12:41 UTC 2015
Sorry for the late answer but I had some new information to share about this issue.
I asked the user who got a JRELoadError to try to launch the program on a new user account but this didn't help.
He also reported the following stack trace which make him wonder if there could be an incompatible DLL somewhere:
2015-02-11 18:01:08.693 SweetHome3D[1073:707] Could not get function pointer for JLI_Launch.: (
0 CoreFoundation 0x00007fff8cf2fb06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff928f13f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8cf2f8dc +[NSException raise:format:] + 204
3 SweetHome3D 0x00000001000017fe launch + 499
4 SweetHome3D 0x0000000100001578 main + 76
5 SweetHome3D 0x0000000100001524 start + 52
6 ??? 0x0000000000000001 0x0 + 1
Hope this will help,
--
Emmanuel PUYBARET
Sweet Home 3D developer
Email : puybaret at eteks.com
Web : http://www.eteks.com
http://www.sweethome3d.com
> Le 2 févr. 2015 à 00:01, Mike Swingler <swingler at apple.com> a écrit :
>
> A few things you might want to try (since you mentioned that the app was sandboxed):
> - Check the app bundle's code signature validity with "codesign -vvvv"
> - Try launching the app inside of a clean new user account.
> - Ask the user if they have a different GateKeeper setting than you do.
> - Ask the user which OS version they are on, and compare it to the one you are using to reproduce.
>
> Good luck,
> Mike Swingler
> Apple Inc.
>
>> On Feb 1, 2015, at 12:17 PM, Emmanuel Puybaret <puybaret at eteks.com> wrote:
>>
>> Thank you all for your suggestions.
>> Just to be clear, this error happens for very few users in a sandboxed version of the program that embeds a copy of the JRE.
>> The error happens with JavaAppLauncher and with the launcher provided with javafxpacakager.
>> Nevertheless, I requested to a user who encountered this issue to reset JAVA_HOME and to remove all JVMs he could find
>> in folders "/Library/Internet Plug-Ins", "/Library/Java/JavaVirtualMachines" and "/System/Library/Java/JavaVirtualMachines".
>> From his report, this didn't help at all. :-(
>>
>> Any other idea of a possible conflict?
>>
>> Thans for your help :-)
>> --
>> Emmanuel PUYBARET
>> Email : puybaret at eteks.com
>> Web : http://www.eteks.com
>> http://www.sweethome3d.com
>>
>>> Le 1 févr. 2015 à 17:42, Peter J Slack <pslack at wavedna.com> a écrit :
>>>
>>> Just to clarify my post, I'm suggesting this is potentially the reason why some canned java launchers may not be working with openjdk 1.7 + as opposed to recommending using java 1.6.
>>>
>>> As far as canned launchers go, I would recommend Oracle's FX Ant. not only does it embed java for you and create an application bundle , it creates a package installer, also works for windows.
>>>
>>> the FX:DEPLOY task constructs the launcher for your project
>>>
>>> http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference.htm
>>>
>>>
>>>
>>>
>>>
>>> On Sat, Jan 31, 2015 at 7:49 PM, Mike Swingler <swingler at apple.com> wrote:
>>> Please search for the Java 7, 8, 9 JVM symbols before trying to find the Java 6 symbols. We are actively discouraging developers from using Apples Java SE 6, since it has been deprecated for almost 5 years, and will be unavailable for some future version of OS X. We want developers and users using the best/newest Java available, even if Apple's old one is installed.
>>>
>>> Thanks
>>> Mike Swingler
>>> Apple Inc.
>>>
>>> > On Jan 31, 2015, at 8:45 AM, Peter J Slack <pslack at wavedna.com> wrote:
>>> >
>>> > The Mac version JRE 1.6 uses different symbols than 1.7 and 1.8 for the 2
>>> > key functions used by a launcher to load and run JVM
>>> >
>>> > in order to remedy this I've searched both symbols in case one fails when
>>> > launching a JVM in my own launcher
>>> >
>>> > Launchers have to load the library into memory and then wrap 2 key
>>> > functions. Apple names these functions differently
>>> >
>>> > here's a code snippet in C illustrating how I've adapted setting up to
>>> > launch the JVM by loading in memory, if the Apple naming fails I revert to
>>> > openjdk naming
>>> >
>>> > //first see if the apple naming is active
>>> > WRAPPED_JNI_CreateJavaVM my_JNI_CreateJavaVM = (WRAPPED_JNI_CreateJavaVM)
>>> > dlsym(handle,"JNI_CreateJavaVM_Impl");
>>> >
>>> > //we need to try the possibility that this is not Apple JVM where they
>>> > mangle the names by appending _impl
>>> > if(my_JNI_CreateJavaVM == NULL){
>>> >
>>> > //this is the case for openjdk 1.7 + where they use the
>>> > traditional symbols in jvm.dll
>>> > my_JNI_CreateJavaVM = (WRAPPED_JNI_CreateJavaVM)
>>> > dlsym(handle,"JNI_CreateJavaVM");
>>> >
>>> > }
>>> >
>>> > WRAPPED_JNI_GetCreatedJavaVMs my_JNI_GetCreatedJavaVMs =
>>> > (WRAPPED_JNI_GetCreatedJavaVMs)dlsym(handle,"JNI_GetCreatedJavaVMs_Impl");
>>> >
>>> > if(my_JNI_GetCreatedJavaVMs == NULL){
>>> > my_JNI_GetCreatedJavaVMs =
>>> > (WRAPPED_JNI_GetCreatedJavaVMs)dlsym(handle,"JNI_GetCreatedJavaVMs");
>>> > }
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On Fri, Jan 30, 2015 at 8:43 PM, Michael Hall <mik3hall at gmail.com> wrote:
>>> >
>>> >> On Jan 30, 2015, at 4:00 PM, Emmanuel Puybaret <puybaret at eteks.com> wrote:
>>> >>
>>> >>> Hi,
>>> >>>
>>> >>> I developed a sandboxed version of Sweet Home 3D that comes with its own
>>> >> copy of JRE 7.
>>> >>> Miserably, a few users reported recently that they got a "JRELoadError"
>>> >> when they launch the application.
>>> >>> I tried to update from JRE 7u72 to JRE 7u76, tried to replace
>>> >> JavaAppLauncher by the launcher generated by javafxpackager, and also
>>> >> tried to replace the JRE 7 copy by a JRE 8 copy, but these users reported
>>> >> to me it didn't fix this issue.
>>> >>>
>>> >>> Would have any of you encounter this problem and/or have an idea how to
>>> >> fix it?
>>> >>
>>> >> A number of apps seem to have had the issue if you search on the subject
>>> >> error.
>>> >> This post….
>>> >>
>>> >>
>>> >> http://jedit.9.x6.nabble.com/jEdit-users-JRELoadError-launching-jEdit-5-2pre1-after-mavericks-upgrade-but-no-java-version-or-JAVAe-td5005300.html
>>> >>
>>> >> had a lot of mail list noise but ended up with some valid enough
>>> >> suggestions as to what the possible conflicts might be.
>>> >> Use of JAVA_HOME
>>> >> conflicting with the browser installed JRE version
>>> >> some sort of embedded symlink back to an apple JRE
>>> >> the possibilities that I remember.
>>> >> It suggested a work around of using a 3rd party package for running an app
>>> >> configuration that would work with both Apple and Oracle JRE’s.
>>> >> There might be some information of use to you in that one. There were a
>>> >> number of apps that appeared to have the issue.
>>> >>
>>> >> Michael Hall
>>> >>
>>> >> trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
>>> >>
>>> >> HalfPipe Java 6/7 shell app
>>> >> http://www195.pair.com/mik3hall/index.html#halfpipe
>>> >>
>>> >> AppConverter convert Apple jvm to openjdk apps
>>> >> http://www195.pair.com/mik3hall/index.html#appconverter
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Senior Software Developer / IT Administrator
>>> > Work: (416) 466-9283
>>> > Fax : (866) 855-2605
>>> >
>>> > <http://www.wavedna.com/>
>>> > <https://www.facebook.com/waveDNA> <http://www.twitter.com/wavedna>
>>> > <http://www.youtube.com/wavedna> <http://www.soundcloud.com/wavedna>
>>> > <https://plus.google.com/+Wavedna/posts> <http://instagram.com/wavedna>
>>> > <http://www.linkedin.com/company/wavedna>
>>>
>>>
>>>
>>>
>>> --
>>> Senior Software Developer / IT Administrator
>>> Work: (416) 466-9283
>>> Fax : (866) 855-2605
>>
>
More information about the macosx-port-dev
mailing list