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 : puyba...@eteks.com Web : http://www.eteks.com http://www.sweethome3d.com > Le 1 févr. 2015 à 17:42, Peter J Slack <psl...@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 > <http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference.htm> > > > > > > On Sat, Jan 31, 2015 at 7:49 PM, Mike Swingler <swing...@apple.com > <mailto:swing...@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 <psl...@wavedna.com > > <mailto:psl...@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 <mik3h...@gmail.com > > <mailto:mik3h...@gmail.com>> wrote: > > > >> On Jan 30, 2015, at 4:00 PM, Emmanuel Puybaret <puyba...@eteks.com > >> <mailto:puyba...@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 > >> > >> <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 > >> <http://www195.pair.com/mik3hall/index.html#trz> > >> > >> HalfPipe Java 6/7 shell app > >> http://www195.pair.com/mik3hall/index.html#halfpipe > >> <http://www195.pair.com/mik3hall/index.html#halfpipe> > >> > >> AppConverter convert Apple jvm to openjdk apps > >> http://www195.pair.com/mik3hall/index.html#appconverter > >> <http://www195.pair.com/mik3hall/index.html#appconverter> > >> > >> > >> > >> > >> > > > > > > -- > > Senior Software Developer / IT Administrator > > Work: (416) 466-9283 <tel:%28416%29%20466-9283> > > Fax : (866) 855-2605 <tel:%28866%29%20%20855-2605> > > > > <http://www.wavedna.com/ <http://www.wavedna.com/>> > > <https://www.facebook.com/waveDNA <https://www.facebook.com/waveDNA>> > > <http://www.twitter.com/wavedna <http://www.twitter.com/wavedna>> > > <http://www.youtube.com/wavedna <http://www.youtube.com/wavedna>> > > <http://www.soundcloud.com/wavedna <http://www.soundcloud.com/wavedna>> > > <https://plus.google.com/+Wavedna/posts > > <https://plus.google.com/+Wavedna/posts>> <http://instagram.com/wavedna > > <http://instagram.com/wavedna>> > > <http://www.linkedin.com/company/wavedna > > <http://www.linkedin.com/company/wavedna>> > > > > > -- > Senior Software Developer / IT Administrator > Work: (416) 466-9283 <> > Fax : (866) 855-2605 <>