From thomas.stuefe at gmail.com Fri Mar 6 12:40:17 2015 From: thomas.stuefe at gmail.com (=?UTF-8?Q?Thomas_St=C3=BCfe?=) Date: Fri, 6 Mar 2015 13:40:17 +0100 Subject: libjli, get_cpuid() implementation missing for MacOs, breaks libjli.so build in slowdebug Message-ID: Hi all, I see a build error when building the libjli on MacOs with slowdebug: Undefined symbols for architecture x86_64: "_get_cpuid", referenced from: _hyperthreading_support in ergo_i586.o _logical_processors_per_package in ergo_i586.o ld: symbol(s) not found for architecture x86_64 The reason seems to me that is that in ergo_i586.c, the implementation for "get_cpuid()" is missing for the MacOS case (one is provided for solaris and linux). This only breaks the build in slowdebug, because the function is only used from static functions which are not exported; so when building with optimization (e.g. fastdebug), all these functions are thrown away by the compiler and therefore get_cpuid() is not needed. I opened a bug: https://bugs.openjdk.java.net/browse/JDK-8074547 but do not provide a fix because I am not sure which way to fix this: - one could provide an empty implementation for this function - or one could provide a fully functional implementation Also, maybe I overlooked something and my analysis is wrong. What do you guys think? Kind Regards, Thomas Stuefe From puybaret at eteks.com Mon Mar 9 17:12:41 2015 From: puybaret at eteks.com (Emmanuel Puybaret) Date: Mon, 9 Mar 2015 18:12:41 +0100 Subject: JRELoadError In-Reply-To: <21A9E44D-7CB0-447E-903A-A9B1823261CE@apple.com> References: <52CA5C47-DBFC-4275-A688-2016B2EBFA6F@apple.com> <21A9E44D-7CB0-447E-903A-A9B1823261CE@apple.com> Message-ID: <6EEEC18C-6DB8-4108-8729-7F574226F7C5@eteks.com> 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 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 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 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 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 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 wrote: >>> > >>> >> On Jan 30, 2015, at 4:00 PM, Emmanuel Puybaret 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 >>> > >>> > >>> > >>> > >>> > >>> > >>> >>> >>> >>> >>> -- >>> Senior Software Developer / IT Administrator >>> Work: (416) 466-9283 >>> Fax : (866) 855-2605 >> > From puybaret at eteks.com Mon Mar 9 17:39:48 2015 From: puybaret at eteks.com (Emmanuel Puybaret) Date: Mon, 9 Mar 2015 18:39:48 +0100 Subject: FileDialog unusable in applets running in Safari Message-ID: <88675290-CBAF-4A92-ABF8-EEEE0E661E82@eteks.com> Hi again, Some time ago, I noticed a strange issue in applets that happen with Safari, and not with Firefox and Chrome: As the two following screen captures show clearly http://www.sweethome3d.com/images/forum/IssueWithSweetHome3DOnlineUnderSafari.jpg http://www.sweethome3d.com/images/forum/NoIssueWithSweetHome3DOnlineUnderFirefox.jpg default folder images are not displayed in a JTree instance and much more annoying, you can't select any file in an AWT FileDialog since they are even not listed!!! It would be nice if you could check that you encounter the same issue on your side. Just go to http://www.sweethome3d.com/SweetHome3DOnline.jsp then right click in the top left catalog, select "Import furniture" and click on "Choose model" button to get this strange file dialog. Did anyone notice the same issue in his applet? To whom this bug should be submitted? Many thanks for your suggestions, -- Emmanuel PUYBARET Sweet Home 3D developer Email : puybaret at eteks.com Web : http://www.eteks.com http://www.sweethome3d.com From puybaret at eteks.com Mon Mar 9 18:29:35 2015 From: puybaret at eteks.com (Emmanuel Puybaret) Date: Mon, 9 Mar 2015 19:29:35 +0100 Subject: Managing Open Recent menu in a sandboxed application Message-ID: <96205483-7709-4F8F-ACEE-7C264D9E3016@eteks.com> Hi, As you probably know, an Apple sandboxed application can read only files that the user selected with a standard file dialog box or from an Open Recent menu. In a sandboxed Swing application, this obliges to use FileDialog AWT class to select files but this is not a big issue since JFileChooser class is so poor. Managing an Open Recent menu from a such an application is much more tricky because Apple lets you read only the recent files managed by a menu created with a nib file, and menus in a Swing application are not created that way. As all programers who use a non standard framework for their application have the same issue, a simple search https://www.google.com/search?q=%22open+recent%22+sandbox might give some tips like the following one http://www.juce.com/comment/287990#comment-287990 which proposes to create a dummy nib file containing only "File > Open recent" menu, retrieve recent files returned by recentDocumentURLs in NSDocumentController class, and then uses these recent files to populate your own menu. Would it be possible to use this tip to create a new method in com.apple.eawt.Application that would return the recent files? Thanks for your suggestions, -- Emmanuel PUYBARET Sweet Home 3D developer Email : puybaret at eteks.com Web : http://www.eteks.com http://www.sweethome3d.com From david.dehaven at oracle.com Mon Mar 9 18:37:19 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Mon, 9 Mar 2015 11:37:19 -0700 Subject: FileDialog unusable in applets running in Safari In-Reply-To: <88675290-CBAF-4A92-ABF8-EEEE0E661E82@eteks.com> References: <88675290-CBAF-4A92-ABF8-EEEE0E661E82@eteks.com> Message-ID: > Hi again, > > Some time ago, I noticed a strange issue in applets that happen with Safari, and not with Firefox and Chrome: > As the two following screen captures show clearly > http://www.sweethome3d.com/images/forum/IssueWithSweetHome3DOnlineUnderSafari.jpg > http://www.sweethome3d.com/images/forum/NoIssueWithSweetHome3DOnlineUnderFirefox.jpg > default folder images are not displayed in a JTree instance and much more annoying, you can't select any file in an AWT FileDialog since they are even not listed!!! This could be due to sandboxing. Have you tried with Safari set to run the applet in ?Unsafe" mode? It?s in the security preferences in Safari, click the ?Website Settings...? button and you should find your applet by domain. -DrD- From jesmith at kaon.com Mon Mar 9 18:37:40 2015 From: jesmith at kaon.com (Joshua Smith) Date: Mon, 9 Mar 2015 14:37:40 -0400 Subject: FileDialog unusable in applets running in Safari In-Reply-To: <88675290-CBAF-4A92-ABF8-EEEE0E661E82@eteks.com> References: <88675290-CBAF-4A92-ABF8-EEEE0E661E82@eteks.com> Message-ID: <46C939B3-4B68-465C-A78C-65714F377B73@kaon.com> It?s a Safari security setting. Preferences ? Security ? Internet Plugins Website Settings? Java Add the site, and set it to run in ?unsafe mode? > On Mar 9, 2015, at 1:39 PM, Emmanuel Puybaret wrote: > > Hi again, > > Some time ago, I noticed a strange issue in applets that happen with Safari, and not with Firefox and Chrome: > As the two following screen captures show clearly > http://www.sweethome3d.com/images/forum/IssueWithSweetHome3DOnlineUnderSafari.jpg > http://www.sweethome3d.com/images/forum/NoIssueWithSweetHome3DOnlineUnderFirefox.jpg > default folder images are not displayed in a JTree instance and much more annoying, you can't select any file in an AWT FileDialog since they are even not listed!!! > > It would be nice if you could check that you encounter the same issue on your side. Just go to http://www.sweethome3d.com/SweetHome3DOnline.jsp then right click in the top left catalog, select "Import furniture" and click on "Choose model" button to get this strange file dialog. > Did anyone notice the same issue in his applet? > To whom this bug should be submitted? > > Many thanks for your suggestions, > -- > Emmanuel PUYBARET > Sweet Home 3D developer > Email : puybaret at eteks.com > Web : http://www.eteks.com > http://www.sweethome3d.com > From puybaret at eteks.com Mon Mar 9 19:49:36 2015 From: puybaret at eteks.com (Emmanuel Puybaret) Date: Mon, 9 Mar 2015 20:49:36 +0100 Subject: FileDialog unusable in applets running in Safari In-Reply-To: <46C939B3-4B68-465C-A78C-65714F377B73@kaon.com> References: <88675290-CBAF-4A92-ABF8-EEEE0E661E82@eteks.com> <46C939B3-4B68-465C-A78C-65714F377B73@kaon.com> Message-ID: <0711F4DE-3576-45C7-BEEA-7BDF66BC9940@eteks.com> > It?s a Safari security setting. > > Preferences ? Security ? Internet Plugins Website Settings? Java > > Add the site, and set it to run in ?unsafe mode? O_O Wow, so now, to run applets that need to access to the file system, you have to buy a certificate, sign your applet, make the user accept to run applets on you website, make him accept your certificate, and make him change a security setting to UNSAFE mode in Safari! Who is the f$&@#ng manager at Apple who decided that? Then, why supporting applets in Safari? Frankly, Apple should simply refuse them, at least, the message would be clear Still can't believe it... :-( -- Emmanuel PUYBARET Sweet Home 3D developer Email : puybaret at eteks.com Web : http://www.eteks.com http://www.sweethome3d.com > Le 9 mars 2015 ? 19:37, Joshua Smith a ?crit : > > It?s a Safari security setting. > > Preferences ? Security ? Internet Plugins Website Settings? Java > > Add the site, and set it to run in ?unsafe mode? > > >> On Mar 9, 2015, at 1:39 PM, Emmanuel Puybaret wrote: >> >> Hi again, >> >> Some time ago, I noticed a strange issue in applets that happen with Safari, and not with Firefox and Chrome: >> As the two following screen captures show clearly >> http://www.sweethome3d.com/images/forum/IssueWithSweetHome3DOnlineUnderSafari.jpg >> http://www.sweethome3d.com/images/forum/NoIssueWithSweetHome3DOnlineUnderFirefox.jpg >> default folder images are not displayed in a JTree instance and much more annoying, you can't select any file in an AWT FileDialog since they are even not listed!!! >> >> It would be nice if you could check that you encounter the same issue on your side. Just go to http://www.sweethome3d.com/SweetHome3DOnline.jsp then right click in the top left catalog, select "Import furniture" and click on "Choose model" button to get this strange file dialog. >> Did anyone notice the same issue in his applet? >> To whom this bug should be submitted? >> >> Many thanks for your suggestions, >> -- >> Emmanuel PUYBARET >> Sweet Home 3D developer >> Email : puybaret at eteks.com >> Web : http://www.eteks.com >> http://www.sweethome3d.com >> > > From pslack at wavedna.com Mon Mar 9 22:47:23 2015 From: pslack at wavedna.com (Peter J Slack) Date: Mon, 9 Mar 2015 18:47:23 -0400 Subject: JRELoadError In-Reply-To: <6EEEC18C-6DB8-4108-8729-7F574226F7C5@eteks.com> References: <52CA5C47-DBFC-4275-A688-2016B2EBFA6F@apple.com> <21A9E44D-7CB0-447E-903A-A9B1823261CE@apple.com> <6EEEC18C-6DB8-4108-8729-7F574226F7C5@eteks.com> Message-ID: looking at your build.xml on CVS browser . . possible you are using 32 bit JOGL libraries . .you will want to update all your native binary libraries for OSX to 64 bit .. that's just what jumped out I haven't looked at the whole file .. 215 216 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 On Mon, Mar 9, 2015 at 1:12 PM, Emmanuel Puybaret wrote: > 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 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 > 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 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 > 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 > 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 > wrote: > >>> > > >>> >> On Jan 30, 2015, at 4:00 PM, Emmanuel Puybaret > 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.twitter.com/wavedna> > >>> > > > >>> > < > http://instagram.com/wavedna> > >>> > > >>> > >>> > >>> > >>> > >>> -- > >>> Senior Software Developer / IT Administrator > >>> Work: (416) 466-9283 > >>> Fax : (866) 855-2605 > >> > > > > -- Senior Software Developer / IT Administrator Work: (416) 466-9283 Fax : (866) 855-2605 From mik3hall at gmail.com Mon Mar 9 23:33:22 2015 From: mik3hall at gmail.com (Michael Hall) Date: Mon, 9 Mar 2015 18:33:22 -0500 Subject: Ending the need for apple.laf.useScreenMenuBar In-Reply-To: <54C2191A.8070406@oracle.com> References: <98E2D45C-7931-4C41-A6C5-5B76DBA97C01@oracle.com> <22C17734-371C-460C-8234-BC25C249DB27@gmail.com> <8D244E52-D8CF-428F-B7F2-54A4889DF730@apple.com> <39C5D568-7A78-498D-B62D-ECEB4885AA89@oracle.com> <4EDCA550.6080402@oracle.com> <005866A6-DB52-46BB-B6A7-43B046333DD8@apple.com> <54C2191A.8070406@oracle.com> Message-ID: On Jan 23, 2015, at 3:49 AM, Sergey Bylokhov wrote: >> > > I suppose nobody object to enable this property by default in jdk9? The possibility to switch it off will exist. Curious. I just started jconsole to watch memory usage for a java application. It shows a non-mac in-frame menubar? With just jconsole?. which jconsole /usr/bin/jconsole ls -l /usr/bin/jconsole lrwxr-xr-x 1 root wheel 78 Sep 16 19:13 /usr/bin/jconsole -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jconsole same behavior with? /usr/libexec/java_home -v 1.9 --exec jconsole Actually, neat trick, if I do? jconsole -version I get... JConsole version "1.9.0-ea-b50" Java(TM) SE Runtime Environment (build 1.9.0-ea-b50) Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b50) so new version either way. Not sure how the /System/Library version picks that up. Anyhow, the menubar for jdk9 doesn?t seem to automatically include the mac menubar option? 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 From puybaret at eteks.com Tue Mar 10 16:01:39 2015 From: puybaret at eteks.com (Emmanuel Puybaret) Date: Tue, 10 Mar 2015 17:01:39 +0100 Subject: JRELoadError In-Reply-To: References: <52CA5C47-DBFC-4275-A688-2016B2EBFA6F@apple.com> <21A9E44D-7CB0-447E-903A-A9B1823261CE@apple.com> <6EEEC18C-6DB8-4108-8729-7F574226F7C5@eteks.com> Message-ID: Hi, Thanks for your suggestion. Unfortunately, I don't believe it's a mix between 32 and 64 bit libraries. In the sandboxed version I distribute, binaries are built with an Ant script which removes the 32 bit version of libraries with lipo. Doesn't the stack trace give some hints to some of you? I think that people who have problems with this sandboxed application don't use a system issued from a clean install. Some others reported also that the program hangs when they try to use a FileDialog. Could there be some old incompatible libraries still there in the system that would provoke this kind of error? Best regards, -- Emmanuel PUYBARET Sweet Home 3D developer Email : puybaret at eteks.com Web : http://www.eteks.com http://www.sweethome3d.com > Le 9 mars 2015 ? 23:47, Peter J Slack a ?crit : > > looking at your build.xml on CVS browser . . possible you are using 32 bit JOGL libraries . .you will want to update all your native binary libraries for OSX to 64 bit .. that's just what jumped out I haven't looked at the whole file .. > > 213 214 description="Builds applet Java 3D library suitable for all systems in deploy/lib subdirectory"> > 215 > 216 > 218 > 219 > 220 > 221 > 222 > 223 > 224 > 225 > 226 > 227 > 228 > 229 > 230 > 231 > 232 > 233 > 234 > 235 > > > > On Mon, Mar 9, 2015 at 1:12 PM, Emmanuel Puybaret wrote: >> 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 > From david.dehaven at oracle.com Tue Mar 10 16:42:42 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Tue, 10 Mar 2015 09:42:42 -0700 Subject: JRELoadError In-Reply-To: References: <52CA5C47-DBFC-4275-A688-2016B2EBFA6F@apple.com> <21A9E44D-7CB0-447E-903A-A9B1823261CE@apple.com> <6EEEC18C-6DB8-4108-8729-7F574226F7C5@eteks.com> Message-ID: It?d be more helpful to know what the NSException was. Without that information, it?s nearly impossible to figure out what?s going on from the stack trace alone. Debug symbols would help too, but if you?re using Java Packager that won?t be an option (sounds like an RFE waiting to happen..). Which version of the packager are you using? If you?re not already, please try the packager in 8u40, it?s much more mature than earlier releases. -DrD- > On Mar 10, 2015, at 9:01 AM, Emmanuel Puybaret wrote: > > Hi, > > Thanks for your suggestion. Unfortunately, I don't believe it's a mix between 32 and 64 bit libraries. > In the sandboxed version I distribute, binaries are built with an Ant script which removes the 32 bit version of libraries with lipo. > > Doesn't the stack trace give some hints to some of you? > I think that people who have problems with this sandboxed application don't use a system issued from a clean install. > Some others reported also that the program hangs when they try to use a FileDialog. > Could there be some old incompatible libraries still there in the system that would provoke this kind of error? > > Best regards, > -- > Emmanuel PUYBARET > Sweet Home 3D developer > Email : puybaret at eteks.com > Web : http://www.eteks.com > http://www.sweethome3d.com > >> Le 9 mars 2015 ? 23:47, Peter J Slack a ?crit : >> >> looking at your build.xml on CVS browser . . possible you are using 32 bit JOGL libraries . .you will want to update all your native binary libraries for OSX to 64 bit .. that's just what jumped out I haven't looked at the whole file .. >> >> 213 > 214 description="Builds applet Java 3D library suitable for all systems in deploy/lib subdirectory"> >> 215 >> 216 >> 218 >> 219 >> 220 >> 221 >> 222 >> 223 >> 224 >> 225 >> 226 >> 227 >> 228 >> 229 >> 230 >> 231 >> 232 >> 233 >> 234 >> 235 >> >> >> >> On Mon, Mar 9, 2015 at 1:12 PM, Emmanuel Puybaret wrote: >>> 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 >> From david.dehaven at oracle.com Tue Mar 10 16:47:13 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Tue, 10 Mar 2015 09:47:13 -0700 Subject: Ending the need for apple.laf.useScreenMenuBar In-Reply-To: References: <98E2D45C-7931-4C41-A6C5-5B76DBA97C01@oracle.com> <22C17734-371C-460C-8234-BC25C249DB27@gmail.com> <8D244E52-D8CF-428F-B7F2-54A4889DF730@apple.com> <39C5D568-7A78-498D-B62D-ECEB4885AA89@oracle.com> <4EDCA550.6080402@oracle.com> <005866A6-DB52-46BB-B6A7-43B046333DD8@apple.com> <54C2191A.8070406@oracle.com> Message-ID: > > Curious. I just started jconsole to watch memory usage for a java application. It shows a non-mac in-frame menubar? > With just jconsole?. > which jconsole > /usr/bin/jconsole > > ls -l /usr/bin/jconsole > lrwxr-xr-x 1 root wheel 78 Sep 16 19:13 /usr/bin/jconsole -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jconsole These are all stub binaries that use the same mechanism that java_home uses to find and launch the latest JDK commands. -DrD- From mik3hall at gmail.com Tue Mar 10 21:51:42 2015 From: mik3hall at gmail.com (Michael Hall) Date: Tue, 10 Mar 2015 16:51:42 -0500 Subject: Ending the need for apple.laf.useScreenMenuBar In-Reply-To: References: <98E2D45C-7931-4C41-A6C5-5B76DBA97C01@oracle.com> <22C17734-371C-460C-8234-BC25C249DB27@gmail.com> <8D244E52-D8CF-428F-B7F2-54A4889DF730@apple.com> <39C5D568-7A78-498D-B62D-ECEB4885AA89@oracle.com> <4EDCA550.6080402@oracle.com> <005866A6-DB52-46BB-B6A7-43B046333DD8@apple.com> <54C2191A.8070406@oracle.com> Message-ID: <8B8E3A43-839D-4A5B-8BF5-3D8D5D516200@gmail.com> On Mar 10, 2015, at 11:47 AM, David DeHaven wrote: > >> >> Curious. I just started jconsole to watch memory usage for a java application. It shows a non-mac in-frame menubar? >> With just jconsole?. >> which jconsole >> /usr/bin/jconsole >> >> ls -l /usr/bin/jconsole >> lrwxr-xr-x 1 root wheel 78 Sep 16 19:13 /usr/bin/jconsole -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jconsole > > These are all stub binaries that use the same mechanism that java_home uses to find and launch the latest JDK commands. Thanks 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 From krueger at lesspain.de Wed Mar 11 16:39:11 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 11 Mar 2015 17:39:11 +0100 Subject: 8u40 no dock icon, no menu, weird window behaviour Message-ID: Hi, after updating to 8u40 our application no longer displays a screen menu (we use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as well and the Frame pops up behind the IDE window (this is all when starting from within Intellij). We are using a modified Nimbus L&F, if that is important. What has happend and is there a way to fix this? Going back to 8u25 everything works. I haven't tested this in an app bundle yet but even for development alone this would be a serious problem for us. Thanks, Robert From krueger at lesspain.de Wed Mar 11 16:53:14 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 11 Mar 2015 17:53:14 +0100 Subject: Fwd: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: References: Message-ID: btw. please change the reply-behaviour of this ML. I am subscribed to tons of technical MLs and this is the only one with this weird default which just calls for people forgetting to choose reply-all. ---------- Forwarded message ---------- From: Robert Kr?ger Date: Wed, Mar 11, 2015 at 5:51 PM Subject: Re: 8u40 no dock icon, no menu, weird window behaviour To: "Gordon, Bruce" Unrecognized option: -Xnosplash Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Just removing the splash screen option worked, however. Do you know if there is already a bug report for this regression? On Wed, Mar 11, 2015 at 5:41 PM, Gordon, Bruce wrote: > -Xnosplash on launch worked for me. > > Bruce Gordon > > > ________________________________________ > From: macosx-port-dev [macosx-port-dev-bounces at openjdk.java.net] on > behalf of Robert Kr?ger [krueger at lesspain.de] > Sent: 11 March 2015 16:39 > To: macosx-port-dev at openjdk.java.net > Subject: 8u40 no dock icon, no menu, weird window behaviour > > Hi, > > after updating to 8u40 our application no longer displays a screen menu (we > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as well and > the Frame pops up behind the IDE window (this is all when starting from > within Intellij). We are using a modified Nimbus L&F, if that is important. > > What has happend and is there a way to fix this? Going back to 8u25 > everything works. I haven't tested this in an app bundle yet but even for > development alone this would be a serious problem for us. > > Thanks, > > Robert > This communication is the property of CenturyLink and may contain > confidential or privileged information. Unauthorized use of this > communication is strictly prohibited and may be unlawful. If you have > received this communication in error, please immediately notify the sender > by reply e-mail and destroy all copies of the communication and any > attachments. > -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From vanjab at icetec.biz Wed Mar 11 17:02:40 2015 From: vanjab at icetec.biz (Vanja Bucic) Date: Wed, 11 Mar 2015 13:02:40 -0400 Subject: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: References: Message-ID: <55007530.1010306@icetec.biz> 8u40 has made all webstart launched apps unusable (on a mac). Seems to be a problem with the initial splash screen implementation which borks everything afterwards. No focus, keyboard events, menu, dock, cmd-tab, etc. Probably the issue you are having. Is IntelliJ starting your app with javaws command? And, as a side note, absolutely mind blowing that Oracle released the update with a bug so huge. Not even their own webstart demos are working. http://stackoverflow.com/questions/28904317/java-8u40-on-os-x-yosemite http://stackoverflow.com/questions/28865399/osx-blocking-jnlp-launch-java1-8u40-anyone-know-why On 3/11/15 12:39 PM, Robert Kr?ger wrote: > Hi, > > after updating to 8u40 our application no longer displays a screen menu (we > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as well and > the Frame pops up behind the IDE window (this is all when starting from > within Intellij). We are using a modified Nimbus L&F, if that is important. > > What has happend and is there a way to fix this? Going back to 8u25 > everything works. I haven't tested this in an app bundle yet but even for > development alone this would be a serious problem for us. > > Thanks, > > Robert > > From Sergey.Bylokhov at oracle.com Wed Mar 11 17:22:38 2015 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Wed, 11 Mar 2015 10:22:38 -0700 Subject: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: References: Message-ID: <550079DE.3050506@oracle.com> Hi, Robert Please file an urgent CR. Add all necessary information to how to reproduce the bug. Also please check different osx version(10.9,10.10). 11.03.15 9:39, Robert Kr?ger wrote: > Hi, > > after updating to 8u40 our application no longer displays a screen menu (we > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as well and > the Frame pops up behind the IDE window (this is all when starting from > within Intellij). We are using a modified Nimbus L&F, if that is important. > > What has happend and is there a way to fix this? Going back to 8u25 > everything works. I haven't tested this in an app bundle yet but even for > development alone this would be a serious problem for us. > > Thanks, > > Robert -- Best regards, Sergey. From ashesfall at gmail.com Wed Mar 11 18:37:49 2015 From: ashesfall at gmail.com (Mike Murray) Date: Wed, 11 Mar 2015 18:37:49 +0000 Subject: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: <550079DE.3050506@oracle.com> Message-ID: This bug has already been filed: https://bugs.openjdk.java.net/browse/JDK-8074669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel There is a workaround, -Xdebug http://stackoverflow.com/questions/28971608/java-jtextfield-entry-broken-on-1-8-0-40-os-x-yosemite-10-10-2 But this is *very* not good... -Michael M On Wed, Mar 11, 2015 at 10:24 AM Sergey Bylokhov wrote: > Hi, Robert > Please file an urgent CR. Add all necessary information to how to > reproduce the bug. Also please check different osx version(10.9,10.10). > > 11.03.15 9:39, Robert Kr?ger wrote: > > Hi, > > > > after updating to 8u40 our application no longer displays a screen menu > (we > > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as well > and > > the Frame pops up behind the IDE window (this is all when starting from > > within Intellij). We are using a modified Nimbus L&F, if that is > important. > > > > What has happend and is there a way to fix this? Going back to 8u25 > > everything works. I haven't tested this in an app bundle yet but even for > > development alone this would be a serious problem for us. > > > > Thanks, > > > > Robert > > > -- > Best regards, Sergey. > > From krueger at lesspain.de Wed Mar 11 18:41:57 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 11 Mar 2015 19:41:57 +0100 Subject: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: References: <550079DE.3050506@oracle.com> Message-ID: I just filed mine with a test case. Although it is probably caused by the same problem I think it's different enough for a separate report. Anyway, I had submitted it about one minute before your email came. On Wed, Mar 11, 2015 at 7:37 PM, Mike Murray wrote: > This bug has already been filed: > > https://bugs.openjdk.java.net/browse/JDK-8074669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > > There is a workaround, -Xdebug > > http://stackoverflow.com/questions/28971608/java-jtextfield-entry-broken-on-1-8-0-40-os-x-yosemite-10-10-2 > > But this is *very* not good... > > -Michael M > > > On Wed, Mar 11, 2015 at 10:24 AM Sergey Bylokhov < > Sergey.Bylokhov at oracle.com> wrote: > >> Hi, Robert >> Please file an urgent CR. Add all necessary information to how to >> reproduce the bug. Also please check different osx version(10.9,10.10). >> >> 11.03.15 9:39, Robert Kr?ger wrote: >> > Hi, >> > >> > after updating to 8u40 our application no longer displays a screen menu >> (we >> > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as >> well and >> > the Frame pops up behind the IDE window (this is all when starting from >> > within Intellij). We are using a modified Nimbus L&F, if that is >> important. >> > >> > What has happend and is there a way to fix this? Going back to 8u25 >> > everything works. I haven't tested this in an app bundle yet but even >> for >> > development alone this would be a serious problem for us. >> > >> > Thanks, >> > >> > Robert >> >> >> -- >> Best regards, Sergey. >> >> -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From ashesfall at gmail.com Wed Mar 11 18:54:56 2015 From: ashesfall at gmail.com (Mike Murray) Date: Wed, 11 Mar 2015 18:54:56 +0000 Subject: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: References: <550079DE.3050506@oracle.com> Message-ID: You should also try -Xdebug in your development environment to see if it has any impact. On Wed, Mar 11, 2015 at 11:41 AM Robert Kr?ger wrote: > I just filed mine with a test case. Although it is probably caused by the > same problem I think it's different enough for a separate report. > > Anyway, I had submitted it about one minute before your email came. > > > On Wed, Mar 11, 2015 at 7:37 PM, Mike Murray wrote: > >> This bug has already been filed: >> >> https://bugs.openjdk.java.net/browse/JDK-8074669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >> >> There is a workaround, -Xdebug >> >> http://stackoverflow.com/questions/28971608/java-jtextfield-entry-broken-on-1-8-0-40-os-x-yosemite-10-10-2 >> >> But this is *very* not good... >> >> -Michael M >> >> >> On Wed, Mar 11, 2015 at 10:24 AM Sergey Bylokhov < >> Sergey.Bylokhov at oracle.com> wrote: >> >>> Hi, Robert >>> Please file an urgent CR. Add all necessary information to how to >>> reproduce the bug. Also please check different osx version(10.9,10.10). >>> >>> 11.03.15 9:39, Robert Kr?ger wrote: >>> > Hi, >>> > >>> > after updating to 8u40 our application no longer displays a screen >>> menu (we >>> > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as >>> well and >>> > the Frame pops up behind the IDE window (this is all when starting from >>> > within Intellij). We are using a modified Nimbus L&F, if that is >>> important. >>> > >>> > What has happend and is there a way to fix this? Going back to 8u25 >>> > everything works. I haven't tested this in an app bundle yet but even >>> for >>> > development alone this would be a serious problem for us. >>> > >>> > Thanks, >>> > >>> > Robert >>> >>> >>> -- >>> Best regards, Sergey. >>> >>> > > > -- > Robert Kr?ger > Managing Partner > Lesspain GmbH & Co. KG > > www.lesspain-software.com > From hadrabap at gmail.com Thu Mar 12 09:23:45 2015 From: hadrabap at gmail.com (Petr Hadraba) Date: Thu, 12 Mar 2015 10:23:45 +0100 Subject: Context Menu Issue in OS X Message-ID: Hello everybody, I?m facing quite annoying situation in all Java-based applications deployed on my OS X. The situation is maybe not crucial but anyway? In every application when I initiate a context menu (mainly Project context-menu in NetBeans which is quite complex) when I ?scroll?, menu disappears. The word ?scroll? is correct to be in double-quates, because of its very easy to invoke scrolling on Magic Mouse which is touch sensitive. I have to mention that I don?t have these issues in native applications (non-Java-Based). Should I report an bug for that? I fully understand that scrolling might be a bit crucial in case of large number of items there in the menu, but still it should not cancel the operation initiated by the user. Thanks for any hints and help. Sincerely yours, Petr From krueger at lesspain.de Thu Mar 12 10:56:38 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 12 Mar 2015 11:56:38 +0100 Subject: 8u40 no dock icon, no menu, weird window behaviour In-Reply-To: References: <550079DE.3050506@oracle.com> Message-ID: -Xdebug does not change anything in my case. On Wed, Mar 11, 2015 at 7:54 PM, Mike Murray wrote: > You should also try -Xdebug in your development environment to see if it > has any impact. > > On Wed, Mar 11, 2015 at 11:41 AM Robert Kr?ger > wrote: > >> I just filed mine with a test case. Although it is probably caused by the >> same problem I think it's different enough for a separate report. >> >> Anyway, I had submitted it about one minute before your email came. >> >> >> On Wed, Mar 11, 2015 at 7:37 PM, Mike Murray wrote: >> >>> This bug has already been filed: >>> >>> https://bugs.openjdk.java.net/browse/JDK-8074669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >>> >>> There is a workaround, -Xdebug >>> >>> http://stackoverflow.com/questions/28971608/java-jtextfield-entry-broken-on-1-8-0-40-os-x-yosemite-10-10-2 >>> >>> But this is *very* not good... >>> >>> -Michael M >>> >>> >>> On Wed, Mar 11, 2015 at 10:24 AM Sergey Bylokhov < >>> Sergey.Bylokhov at oracle.com> wrote: >>> >>>> Hi, Robert >>>> Please file an urgent CR. Add all necessary information to how to >>>> reproduce the bug. Also please check different osx version(10.9,10.10). >>>> >>>> 11.03.15 9:39, Robert Kr?ger wrote: >>>> > Hi, >>>> > >>>> > after updating to 8u40 our application no longer displays a screen >>>> menu (we >>>> > use -Dapple.laf.useScreenMenuBar="true"), the dock Icon is gone as >>>> well and >>>> > the Frame pops up behind the IDE window (this is all when starting >>>> from >>>> > within Intellij). We are using a modified Nimbus L&F, if that is >>>> important. >>>> > >>>> > What has happend and is there a way to fix this? Going back to 8u25 >>>> > everything works. I haven't tested this in an app bundle yet but even >>>> for >>>> > development alone this would be a serious problem for us. >>>> > >>>> > Thanks, >>>> > >>>> > Robert >>>> >>>> >>>> -- >>>> Best regards, Sergey. >>>> >>>> >> >> >> -- >> Robert Kr?ger >> Managing Partner >> Lesspain GmbH & Co. KG >> >> www.lesspain-software.com >> > -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From swpalmer at gmail.com Thu Mar 12 11:33:58 2015 From: swpalmer at gmail.com (Scott Palmer) Date: Thu, 12 Mar 2015 07:33:58 -0400 Subject: Context Menu Issue in OS X In-Reply-To: References: Message-ID: This issue is not specific to OS X, it happens on Windows too. As far as I can tell, it is a bug in Swing. If you scroll with a scrollbar it works, but a mouse wheel dismisses the menu. File a bug with Oracle if you haven't already. Scott On Thu, Mar 12, 2015 at 5:23 AM, Petr Hadraba wrote: > Hello everybody, > > I?m facing quite annoying situation in all Java-based applications > deployed on my OS X. The situation is maybe not crucial but anyway? > > In every application when I initiate a context menu (mainly Project > context-menu in NetBeans which is quite complex) when I ?scroll?, menu > disappears. The word ?scroll? is correct to be in double-quates, because of > its very easy to invoke scrolling on Magic Mouse which is touch sensitive. > > I have to mention that I don?t have these issues in native applications > (non-Java-Based). > > Should I report an bug for that? I fully understand that scrolling might > be a bit crucial in case of large number of items there in the menu, but > still it should not cancel the operation initiated by the user. > > Thanks for any hints and help. > > Sincerely yours, > > Petr > > From puybaret at eteks.com Fri Mar 13 16:12:20 2015 From: puybaret at eteks.com (Emmanuel Puybaret) Date: Fri, 13 Mar 2015 17:12:20 +0100 Subject: Managing Open Recent menu in a sandboxed application In-Reply-To: <96205483-7709-4F8F-ACEE-7C264D9E3016@eteks.com> References: <96205483-7709-4F8F-ACEE-7C264D9E3016@eteks.com> Message-ID: Hi, I tried today the methods of NSDocumentController used to manage recent open documents, and discovered that you just have to call noteNewRecentDocumentURL, clearRecentDocuments and recentDocumentURLs methods through JNI to manage an "Open recent" menu in a sandboxed Java application, without any need of a dummy nib file or Xcode: * [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:documentURL]; adds documentURL to the list of recently opened files or moves it to the top of the list. documentURL should be a document that was actually opened with AWT FileDialog. If you have the string path of the document and not its URL, you can get its URL with fileURLWithPath method in NSURL class. * [[NSDocumentController sharedDocumentController] clearRecentDocuments:nil]; clears the list of recently opened files. * NSArray* recentDocumentURLs = [[NSDocumentController sharedDocumentController] recentDocumentURLs]; returns the list of recently opened files stored by Mac OS X for your application. To convert the returned array of URLs to an array of string paths, have a look to the implementation of nativeRunFileDialog native method in CFileDialog class at https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/macosx/native/sun/awt/CFileDialog.m#L211 I programmed the calls to these methods on my side and could test them successfully in a sandboxed version of my program. But could it be possible in a future release to add the matching native methods in com.apple.eawt.Application to avoid Java programmers to provide their own JNI implementation? Have a nice weekend, -- Emmanuel PUYBARET Sweet Home 3D developer Email : puybaret at eteks.com Web : http://www.eteks.com http://www.sweethome3d.com > Le 9 mars 2015 ? 19:29, Emmanuel Puybaret a ?crit : > > Hi, > > As you probably know, an Apple sandboxed application can read only files that the user selected with a standard file dialog box or from an Open Recent menu. In a sandboxed Swing application, this obliges to use FileDialog AWT class to select files but this is not a big issue since JFileChooser class is so poor. Managing an Open Recent menu from a such an application is much more tricky because Apple lets you read only the recent files managed by a menu created with a nib file, and menus in a Swing application are not created that way. > As all programers who use a non standard framework for their application have the same issue, a simple search > https://www.google.com/search?q=%22open+recent%22+sandbox > might give some tips like the following one > http://www.juce.com/comment/287990#comment-287990 > which proposes to create a dummy nib file containing only "File > Open recent" menu, retrieve recent files returned by recentDocumentURLs in NSDocumentController class, and then uses these recent files to populate your own menu. > Would it be possible to use this tip to create a new method in com.apple.eawt.Application that would return the recent files? > > Thanks for your suggestions, > -- > Emmanuel PUYBARET > Sweet Home 3D developer > Email : puybaret at eteks.com > Web : http://www.eteks.com > http://www.sweethome3d.com > From mik3hall at gmail.com Sat Mar 14 01:42:42 2015 From: mik3hall at gmail.com (Michael Hall) Date: Fri, 13 Mar 2015 20:42:42 -0500 Subject: Managing Open Recent menu in a sandboxed application In-Reply-To: References: <96205483-7709-4F8F-ACEE-7C264D9E3016@eteks.com> Message-ID: <34A66131-9A0F-4F1A-AF39-20C2BF565DE5@gmail.com> On Mar 13, 2015, at 11:12 AM, Emmanuel Puybaret wrote: > I programmed the calls to these methods on my side and could test them successfully in a sandboxed version of my program. > But could it be possible in a future release to add the matching native methods in com.apple.eawt.Application to avoid Java programmers to provide their own JNI implementation? It seems like a useful addition. The is a openjdk awt list I think where this might be more likely answered? An enhancement request might be suggested, I don?t know. Mostly because of lack of current documentation to be found anywhere for some of this Apple legacy OS X specific code. I added some of the file related to my trz download below. One or two changes of my own. I extended the api a little in a way I thought might be useful in a separate class if I remember right. The javadoc isn?t even all that great yet. The classpath exception appeared to apply so I assumed I was ok distributing this. trz is available github. I really should get my email signature to show that. Anyhow, in the meantime, or instead of if you decide you prefer it that way, you could github or otherwise set up a project with your own version of com.apple.eawt.Application? Back in the old days of Mac Java, there were one or two attempts at people running FAQ pages that mentioned OS X specific resources. Maybe there should be one of those again somewhere? Maybe these days a wiki page of some sort somewhere? 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 From java3 at segal.org Wed Mar 18 19:21:23 2015 From: java3 at segal.org (Mickey Segal) Date: Wed, 18 Mar 2015 15:21:23 -0400 Subject: Any ideas on getting the Checkbox event bug fixed? Message-ID: <000201d061b0$b915b3d0$2b411b70$@segal.org> I've run into the Checkbox event bug on the Macintosh implementations of Java, where the guarantee in the Oracle documentation that "Programmatically setting the state of the checkbox will not trigger an ItemEvent" is violated. I see a report on this bug from 11 months ago (https://bugs.openjdk.java.net/browse/JDK-8074500). Since I was using only JRE 1.8.0_31 I tried JRE 1.8.0_40, but the bug is still there. I'm testing using a huge applet, but the behavior seems the same as described in the bug report: * anytime setState is used programmatically for a Checkbox, an ItemEvent is triggered * setEnabled does not trigger an ItemEvent, which was helpful in designing a partial workaround to effects of this bug. Is there some way of finding out whether a bug is likely to get fixed? We found out about this bug from a user of our software, which was concerning since it could have produced an incorrect result as a consequence of the improper ItemEvents. This raises concerns about whether one should advise customers to avoid the Macintosh. A related question: I filed a bug report through Oracle in 2013 about a horrible Macintosh Java display issue, and despite one of the comments being about how easy it seemed to fix the bug, no action has been taken: http://www.segal.org/java/refresh4/ (working applet with link to the official bug report). Are bugs getting fixed on Java for the Macintosh? Is there some way to break such logjams causing delay of years on fixing Macintosh Java bugs, or is this an issue of "nobody's home"? From Sergey.Bylokhov at oracle.com Fri Mar 20 17:07:52 2015 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Fri, 20 Mar 2015 20:07:52 +0300 Subject: Any ideas on getting the Checkbox event bug fixed? In-Reply-To: <000201d061b0$b915b3d0$2b411b70$@segal.org> References: <000201d061b0$b915b3d0$2b411b70$@segal.org> Message-ID: <550C53E8.6020007@oracle.com> Hi, Mickey. It seems that [1] bug was closed incorrectly as "cannot reproduce": [1] https://bugs.openjdk.java.net/browse/JDK-8074500 I just reopen the issue and plan to fix it in jdk8u60. 18.03.15 22:21, Mickey Segal wrote: > I've run into the Checkbox event bug on the Macintosh implementations of > Java, where the guarantee in the Oracle documentation that "Programmatically > setting the state of the checkbox will not trigger an ItemEvent" is > violated. > > > > I see a report on this bug from 11 months ago > (https://bugs.openjdk.java.net/browse/JDK-8074500). Since I was using only > JRE 1.8.0_31 I tried JRE 1.8.0_40, but the bug is still there. I'm testing > using a huge applet, but the behavior seems the same as described in the bug > report: > > * anytime setState is used programmatically for a Checkbox, an > ItemEvent is triggered > > * setEnabled does not trigger an ItemEvent, which was helpful in > designing a partial workaround to effects of this bug. > > > > Is there some way of finding out whether a bug is likely to get fixed? We > found out about this bug from a user of our software, which was concerning > since it could have produced an incorrect result as a consequence of the > improper ItemEvents. This raises concerns about whether one should advise > customers to avoid the Macintosh. > > > > A related question: I filed a bug report through Oracle in 2013 about a > horrible Macintosh Java display issue, and despite one of the comments being > about how easy it seemed to fix the bug, no action has been taken: > http://www.segal.org/java/refresh4/ (working applet with link to the > official bug report). > > > > Are bugs getting fixed on Java for the Macintosh? Is there some way to > break such logjams causing delay of years on fixing Macintosh Java bugs, or > is this an issue of "nobody's home"? > > > > > -- Best regards, Sergey. From java3 at segal.org Fri Mar 20 18:37:08 2015 From: java3 at segal.org (Mickey Segal) Date: Fri, 20 Mar 2015 14:37:08 -0400 Subject: Any ideas on getting the Checkbox event bug fixed? In-Reply-To: <550C53E8.6020007@oracle.com> References: <000201d061b0$b915b3d0$2b411b70$@segal.org> <550C53E8.6020007@oracle.com> Message-ID: <000001d0633c$dfbf2ce0$9f3d86a0$@segal.org> Great. Thanks. It is good to know that someone is there and this just fell between the cracks. If you are having trouble reproducing the bug as described, or would just like another test for robustness, I can help. I see the described problem in a huge applet. I could give you access to that applet or test myself. It would take some work to construct another tiny test program in addition to the one in the bug report, but if that is what is needed I could do that when I get back from a conference next week. As long as it is clear that things get fixed, we'll continue to report bugs. In the old days when Apple was doing the Java internally I constructed many test programs based on problems with this huge applet (see http://www.segal.org/java/mac/bugs.html, though the test applets would now need to be digitally signed to work). -----Original Message----- From: Sergey Bylokhov [mailto:Sergey.Bylokhov at oracle.com] Sent: Friday, March 20, 2015 1:08 PM To: Mickey Segal; Open JDK Java Port MacOS Subject: Re: Any ideas on getting the Checkbox event bug fixed? Hi, Mickey. It seems that [1] bug was closed incorrectly as "cannot reproduce": [1] https://bugs.openjdk.java.net/browse/JDK-8074500 I just reopen the issue and plan to fix it in jdk8u60. From mik3hall at gmail.com Sat Mar 28 16:44:37 2015 From: mik3hall at gmail.com (Michael Hall) Date: Sat, 28 Mar 2015 11:44:37 -0500 Subject: Deployment Message-ID: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> Brief question. What is the recommended deployment tool for applications at this time? Less brief background. I?ve installed the java 9 ea releases. A while back for the jdk, today the jre as well. I was going to work on some application code I haven?t been into for a while. I noticed some things not working, one thought was conflicts between the jre version and jdk. The application has some tools related functionality so it did some stuff with ClassLoaders to include tools.jar from the jdk. So I downloaded the JRE as well. Same problems. So now I?d like to check against a java 8 version of the application since the functionality in 9 just might not be there yet. So trying to figure out how to have multiple versions with different JRE/JDK pairs. Also considering putting some effort into making the application cross-platform. It has pretty much turned into a strictly Mac application. So good cross-platform deployment would be nice. Thanks for any related information. 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 From mik3hall at gmail.com Sat Mar 28 18:11:29 2015 From: mik3hall at gmail.com (Michael Hall) Date: Sat, 28 Mar 2015 13:11:29 -0500 Subject: Deployment In-Reply-To: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> Message-ID: <5390CF60-5248-4D29-8D60-07E6146603AE@gmail.com> On Mar 28, 2015, at 11:44 AM, Michael Hall wrote: > Brief question. What is the recommended deployment tool for applications at this time? Found that there had been some discussion on the Kenai AppBundler list that mentioned javapackager. Looking at that now. 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 From krueger at lesspain.de Sat Mar 28 19:26:42 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sat, 28 Mar 2015 20:26:42 +0100 Subject: Deployment In-Reply-To: <5390CF60-5248-4D29-8D60-07E6146603AE@gmail.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <5390CF60-5248-4D29-8D60-07E6146603AE@gmail.com> Message-ID: Please do post your findings. I am on the same quest at the moment and maybe it helps to share experiences. Am Samstag, 28. M?rz 2015 schrieb Michael Hall : > On Mar 28, 2015, at 11:44 AM, Michael Hall > wrote: > > > Brief question. What is the recommended deployment tool for applications > at this time? > > Found that there had been some discussion on the Kenai AppBundler list > that mentioned javapackager. Looking at that now. > > 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 > > > > > > -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From mik3hall at gmail.com Sat Mar 28 20:29:54 2015 From: mik3hall at gmail.com (Michael Hall) Date: Sat, 28 Mar 2015 15:29:54 -0500 Subject: Fwd: Deployment References: Message-ID: <90582C79-4F63-45C6-A619-B88A5A889C1D@gmail.com> > From: Robert Kr?ger > Subject: Re: Deployment > Date: March 28, 2015 at 2:26:42 PM CDT > To: Michael Hall > Cc: macosx-port-dev > > Please do post your findings. I am on the same quest at the moment and maybe it helps to share experiences. https://java.net/projects/appbundler/lists/dev/archive/2014-05/message/19 might be worth a look. I remembered something was supposed to have incorporated the AppBundler project. Making it sort of on-going supported AppBundler. But didn?t remember what it was. Anyone with more actual experience using javapackager to deploy (anywhere) might have some experiences for those unfamiliar. Had one thing strange already going on today. Not really deployment related but a bit of an experience. Just to get back on a working basis with the application I decided to make one small change I had been thinking about recently. I changed it, Eclipse, then exported the jar. I then manually Finder paste the jar into the application bundle for testing. No sign of the change having been made. Finder info showed the correct matching dates for the jar. Terminal ?ls' commands did not. I finally used Terminal to mv the jar in and it then worked fine. Ran Disk Utility verify in case my hard drive was messed up somehow. Showed it was fine. So I don?t know why Finder and Terminal weren?t in sync with Finder apparently incorrectly showing the state of things. Strange. But definitely if anyone has any advice or any kind of tips on using javapackager or any other current method of OS X or cross-platform application deployment I would be interested in hearing about it. 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 From krueger at lesspain.de Sun Mar 29 10:49:44 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sun, 29 Mar 2015 12:49:44 +0200 Subject: Deployment In-Reply-To: <90582C79-4F63-45C6-A619-B88A5A889C1D@gmail.com> References: <90582C79-4F63-45C6-A619-B88A5A889C1D@gmail.com> Message-ID: Regarding your observation, I would not exclude the possibility of OSX caching application resources if the bundle version in the Info.plist has not changed. That may explain things. It definitely happened to me in the past with Info.plist metadata changes not becoming effective until I moved the app bundle around. For OSX packaging I have successfully played around with the gradle plugin at https://code.google.com/p/gradle-macappbundle/. It simply worked and did the things I wanted it to do. However I was curious about an officially supported java packaging mechanism that also works on windows but need to integrate it in my gradle build, so I came across https://bitbucket.org/shemnon/javafx-gradle by Danno Ferrin (Oracle), which accoding to him is still being maintained and should work with current JDK versions and at least one person uses it to produce Windows and Linux distributions of his application. I haven't tried it yet as there are no docs and I am not sure I understand the samples correctly. Each of them contains a bootstrap script, which I don't really understand, i.e. do I have to copy & paste this script into every project from which I use the plugin? Feels odd but I probably misunderstand something here. I am also not sure if this is JavaFX-only. My understanding was that Javapackager used to be JavaFX-specific but then turned general-purpose, so maybe the gradle plugin name is misleading and the whole thing also works for non-JFX applications but I am really just speculating here. On Sat, Mar 28, 2015 at 9:29 PM, Michael Hall wrote: > > From: Robert Kr?ger > > Subject: Re: Deployment > > Date: March 28, 2015 at 2:26:42 PM CDT > > To: Michael Hall > > Cc: macosx-port-dev > > > > Please do post your findings. I am on the same quest at the moment and > maybe it helps to share experiences. > > https://java.net/projects/appbundler/lists/dev/archive/2014-05/message/19 > > might be worth a look. I remembered something was supposed to have > incorporated the AppBundler project. Making it sort of on-going supported > AppBundler. But didn?t remember what it was. > Anyone with more actual experience using javapackager to deploy (anywhere) > might have some experiences for those unfamiliar. > > Had one thing strange already going on today. Not really deployment > related but a bit of an experience. > Just to get back on a working basis with the application I decided to make > one small change I had been thinking about recently. > I changed it, Eclipse, then exported the jar. I then manually Finder paste > the jar into the application bundle for testing. > No sign of the change having been made. > Finder info showed the correct matching dates for the jar. > Terminal ?ls' commands did not. I finally used Terminal to mv the jar in > and it then worked fine. > Ran Disk Utility verify in case my hard drive was messed up somehow. > Showed it was fine. > So I don?t know why Finder and Terminal weren?t in sync with Finder > apparently incorrectly showing the state of things. > Strange. > > But definitely if anyone has any advice or any kind of tips on using > javapackager or any other current method of OS X or cross-platform > application deployment I would be interested in hearing about it. > > 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 > > > > > -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From Kustaa.Nyholm at planmeca.com Sun Mar 29 11:09:06 2015 From: Kustaa.Nyholm at planmeca.com (Kustaa Nyholm) Date: Sun, 29 Mar 2015 14:09:06 +0300 Subject: Deployment In-Reply-To: Message-ID: On 29/03/2015 13:49, "Robert Kr?ger" wrote: >For OSX packaging I have successfully played around with the gradle plugin >at https://code.google.com/p/gradle-macappbundle/. It simply worked and >did >the things I wanted it to do. However I was curious about an officially >supported java packaging mechanism that also works on windows Sorry I've not been following this thread so maybe I miss the mark but I've used JWrapper and I like it a lot: http://www.jwrapper.com Has almost all the features I want and the end user experience is rather nice, very Mac-like. br Kusti This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general. From krueger at lesspain.de Sun Mar 29 11:56:10 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Sun, 29 Mar 2015 13:56:10 +0200 Subject: Deployment In-Reply-To: References: Message-ID: Thanks. Looks like an interesting alternative, especially for the JVM compression. Shipping a 50M+ package for an app that only contains a few K of your own code, sucks. Do you know if it can be integrated into a gradle build? I didn't find anything on their site regarding that. Does it also produce packages for publishing in Apple and Windows app stores? Cheers, Robert On Sun, Mar 29, 2015 at 1:09 PM, Kustaa Nyholm wrote: > On 29/03/2015 13:49, "Robert Kr?ger" wrote: > > >For OSX packaging I have successfully played around with the gradle plugin > >at https://code.google.com/p/gradle-macappbundle/. It simply worked and > >did > >the things I wanted it to do. However I was curious about an officially > >supported java packaging mechanism that also works on windows > > Sorry I've not been following this thread so maybe I miss the mark > but I've used JWrapper and I like it a lot: > > http://www.jwrapper.com > > Has almost all the features I want and the end user experience is rather > nice, very Mac-like. > > br Kusti > > > > > > This e-mail may contain confidential or privileged information. If you are > not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > strictly forbidden. We will not be liable for direct, indirect, special or > consequential damages arising from alteration of the contents of this > message by a third party or as a result of any virus being passed on or as > of transmission of this e-mail in general. > -- Robert Kr?ger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com From mik3hall at gmail.com Sun Mar 29 12:23:49 2015 From: mik3hall at gmail.com (Michael Hall) Date: Sun, 29 Mar 2015 07:23:49 -0500 Subject: Deployment In-Reply-To: References: <90582C79-4F63-45C6-A619-B88A5A889C1D@gmail.com> Message-ID: On Mar 29, 2015, at 5:49 AM, Robert Kr?ger wrote: > Regarding your observation, I would not exclude the possibility of OSX caching application resources if the bundle version in the Info.plist has not changed. That may explain things. It definitely happened to me in the past with Info.plist metadata changes not becoming effective until I moved the app bundle around. I remember that one. Mainly involving changes to the Info.plist. I think I had a bug report on that one at one time. I seem to remember it was eventually closed as ?expected behavior?. Who expected this behavior? Certainly not me. That one I think concerned some application database that didn?t get updated. What I was seeing yesterday was the time stamp between Finder and terminal commands seemed out of sync for a jar file. > For OSX packaging I have successfully played around with the gradle plugin at https://code.google.com/p/gradle-macappbundle/. It simply worked and did the things I wanted it to do. However I was curious about an officially supported java packaging mechanism that also works on windows but need to integrate it in my gradle build, so I came across https://bitbucket.org/shemnon/javafx-gradle by Danno Ferrin (Oracle), which accoding to him is still being maintained and should work with current JDK versions and at least one person uses it to produce Windows and Linux distributions of his application. I haven't tried it yet as there are no docs and I am not sure I understand the samples correctly. Each of them contains a bootstrap script, which I don't really understand, i.e. do I have to copy & paste this script into every project from which I use the plugin? Feels odd but I probably misunderstand something here. I am also not sure if this is JavaFX-only. My understanding was that Javapackager used to be JavaFX-specific but then turned general-purpose, so maybe the gradle plugin name is misleading and the whole thing also works for non-JFX applications but I am really just speculating here. I think you?re right on the javaFX origins of the javapackager command. But since David DeHaven indicates the old AppBundler support has been rolled into it. It seems a logical Oracle supported successor. David has been good about providing continuing support on this and even the old Apple java-dev list. 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 From mik3hall at gmail.com Sun Mar 29 12:35:30 2015 From: mik3hall at gmail.com (Michael Hall) Date: Sun, 29 Mar 2015 07:35:30 -0500 Subject: Deployment In-Reply-To: References: Message-ID: On Mar 29, 2015, at 6:09 AM, Kustaa Nyholm wrote: > > > http://www.jwrapper.com > There are alternatives that can be found I came across? https://github.com/joshmarinacci/AppBundler yesterday trying to track down the javapackager related. I like that it?s ant based which I usually use completely for smaller projects I haven?t gone to eclipse with. Or is usually involved somewhere in application readying the code. Josh Marinacci has been on the list but I?m not sure how actively he supports this. I found another one maybe a week back that I downloaded on Windows but that looked like after about a month trial it would expect me to start paying. For the moment I think I?ll at least look into javapackager. It looks to support some of the current deployment complications like code signing for the app store that Robert Kr?ger mentioned. 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 From Kustaa.Nyholm at planmeca.com Sun Mar 29 12:43:12 2015 From: Kustaa.Nyholm at planmeca.com (Kustaa Nyholm) Date: Sun, 29 Mar 2015 15:43:12 +0300 Subject: Deployment In-Reply-To: Message-ID: > Does it also produce packages for publishing in Apple and Windows app stores? Sorry, I'm not in Appstore so I don't know but I would expect that they are doing their best in that front too as that is an obvious need for commercial users and they are commercial too. br Kusti ________________________________ This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general. From mik3hall at gmail.com Sun Mar 29 12:51:48 2015 From: mik3hall at gmail.com (Michael Hall) Date: Sun, 29 Mar 2015 07:51:48 -0500 Subject: Deployment In-Reply-To: References: Message-ID: On Mar 29, 2015, at 7:43 AM, Kustaa Nyholm wrote: > >> Does it also produce packages for publishing in Apple and Windows app stores? > > Sorry, I'm not in Appstore so I don't know but I would expect that they are > doing their best in that front too as that is an obvious need for commercial > users and they are commercial too. I?m not in app store with anything yet either. There are probably a number of alternatives, with their own pluses and minuses. If for some reason javapackager doesn?t seem like it will work out, having something that seems like a show stopping minus, I might give JWrapper a try. Thanks 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 From david.dehaven at oracle.com Mon Mar 30 15:45:31 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Mon, 30 Mar 2015 08:45:31 -0700 Subject: Deployment In-Reply-To: <5390CF60-5248-4D29-8D60-07E6146603AE@gmail.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <5390CF60-5248-4D29-8D60-07E6146603AE@gmail.com> Message-ID: <392F291D-D120-4291-8B9C-A4C1D16E86B7@oracle.com> >> Brief question. What is the recommended deployment tool for applications at this time? > > Found that there had been some discussion on the Kenai AppBundler list that mentioned javapackager. Looking at that now. Java Packager included with the JDK is under (very) active development. The AppBundler project is no longer active. Java packager discussion should be done on the OpenJFX mailing list, it was originally JavaFX packager (but it's always supported non-FX applications, hence the name change). -DrD- From david.dehaven at oracle.com Mon Mar 30 15:50:02 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Mon, 30 Mar 2015 08:50:02 -0700 Subject: Deployment In-Reply-To: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> Message-ID: <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> > Less brief background. > I?ve installed the java 9 ea releases. A while back for the jdk, today the jre as well. Be careful with those... 9 is undergoing a lot of changes so results may vary between ea releases. I highly recommend sticking with JDK 8 releases for now, especially for production code. Moving forward and investigating modularity is the only reason I'd recommend looking at 9 right now. > I was going to work on some application code I haven?t been into for a while. > I noticed some things not working, one thought was conflicts between the jre version and jdk. The application has some tools related functionality so it did some stuff with ClassLoaders to include tools.jar from the jdk. > So I downloaded the JRE as well. Same problems. > So now I?d like to check against a java 8 version of the application since the functionality in 9 just might not be there yet. The runtime (and tools, etc.) in 9 is bundled in modular images instead of jars now. -DrD- From david.dehaven at oracle.com Mon Mar 30 16:06:13 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Mon, 30 Mar 2015 09:06:13 -0700 Subject: Deployment In-Reply-To: References: Message-ID: <9AA1406F-EC85-4B1A-A972-C3607556A4D8@oracle.com> >> http://www.jwrapper.com >> > > There are alternatives that can be found I came across? > https://github.com/joshmarinacci/AppBundler There's an unofficial fork of AppBundler that's being maintained by (?) at BitBucket, those who were involved with the now defunct AppBundler Kenai project decided that would be the community maintained fork: https://bitbucket.org/infinitekind/appbundler Note that AppBundler only supports OSX where Java Packager supports OSX, Windows and Linux, and as far as I'm aware the InfiniteKind fork isn't as complete wrt OSX packages (I haven't been following activity there for a while though). Java Packager is also open source as it's part of OpenJFX, community involvement is encouraged. Yes, it supports Mac App Store (specifically) No, Windows 8 App Store is not supported because (AFAIK) MS requires apps be built for WinRT which cannot be done for the JRE at the moment (basically a whole new platform which brings a whole host of new issues into the mix) -DrD- From krueger at lesspain.de Mon Mar 30 17:49:18 2015 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Mon, 30 Mar 2015 19:49:18 +0200 Subject: Deployment In-Reply-To: <9AA1406F-EC85-4B1A-A972-C3607556A4D8@oracle.com> References: <9AA1406F-EC85-4B1A-A972-C3607556A4D8@oracle.com> Message-ID: On Mon, Mar 30, 2015 at 6:06 PM, David DeHaven wrote: > > >> http://www.jwrapper.com > >> > > > > There are alternatives that can be found I came across? > > https://github.com/joshmarinacci/AppBundler > > There's an unofficial fork of AppBundler that's being maintained by (?) at > BitBucket, those who were involved with the now defunct AppBundler Kenai > project decided that would be the community maintained fork: > https://bitbucket.org/infinitekind/appbundler > > Note that AppBundler only supports OSX where Java Packager supports OSX, > Windows and Linux, and as far as I'm aware the InfiniteKind fork isn't as > complete wrt OSX packages (I haven't been following activity there for a > while though). Java Packager is also open source as it's part of OpenJFX, > community involvement is encouraged. > > Yes, it supports Mac App Store (specifically) > > No, Windows 8 App Store is not supported because (AFAIK) MS requires apps > be built for WinRT which cannot be done for the JRE at the moment > (basically a whole new platform which brings a whole host of new issues > into the mix) > so much for my JFX-cross platform publication plans. Really? I was not aware of that. Thanks for bringing that to my attention. From mik3hall at gmail.com Tue Mar 31 08:48:51 2015 From: mik3hall at gmail.com (Michael Hall) Date: Tue, 31 Mar 2015 03:48:51 -0500 Subject: Deployment In-Reply-To: <392F291D-D120-4291-8B9C-A4C1D16E86B7@oracle.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <5390CF60-5248-4D29-8D60-07E6146603AE@gmail.com> <392F291D-D120-4291-8B9C-A4C1D16E86B7@oracle.com> Message-ID: <73C5C73C-50EA-4870-B554-60631EC123A3@gmail.com> On Mar 30, 2015, at 10:45 AM, David DeHaven wrote: > >>> Brief question. What is the recommended deployment tool for applications at this time? >> >> Found that there had been some discussion on the Kenai AppBundler list that mentioned javapackager. Looking at that now. > > Java Packager included with the JDK is under (very) active development. The AppBundler project is no longer active. > > Java packager discussion should be done on the OpenJFX mailing list, it was originally JavaFX packager (but it's always supported non-FX applications, hence the name change). I haven?t done any JavaFX yet either. Just as long as it isn?t a requirement for use of the deployment tool. 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 From mik3hall at gmail.com Tue Mar 31 08:54:57 2015 From: mik3hall at gmail.com (Michael Hall) Date: Tue, 31 Mar 2015 03:54:57 -0500 Subject: Deployment In-Reply-To: <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> Message-ID: <43DAB354-6BFE-4C1B-A8BA-0F4E159C518F@gmail.com> On Mar 30, 2015, at 10:50 AM, David DeHaven wrote: > >> Less brief background. >> I?ve installed the java 9 ea releases. A while back for the jdk, today the jre as well. > > Be careful with those... 9 is undergoing a lot of changes so results may vary between ea releases. I highly recommend sticking with JDK 8 releases for now, especially for production code. > > Moving forward and investigating modularity is the only reason I'd recommend looking at 9 right now. I was trying to figure out some way to have 8 the default and still have 9 available for testing last night. Still working on it. There is still more just related to figuring out modularity to look at. I am of course looking forward to using modularity at some point to significantly reduce the size of an embedded JRE for a OS X java application. 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 From mik3hall at gmail.com Tue Mar 31 08:56:44 2015 From: mik3hall at gmail.com (Michael Hall) Date: Tue, 31 Mar 2015 03:56:44 -0500 Subject: Deployment In-Reply-To: <9AA1406F-EC85-4B1A-A972-C3607556A4D8@oracle.com> References: <9AA1406F-EC85-4B1A-A972-C3607556A4D8@oracle.com> Message-ID: <6CD19F8C-7F89-4D64-9763-B143A6278B6E@gmail.com> On Mar 30, 2015, at 11:06 AM, David DeHaven wrote: > Yes, it supports Mac App Store (specifically) That possibility is good enough for me for right now. I would just like to see some of my code usable on Windows at some point. 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 From david.dehaven at oracle.com Tue Mar 31 16:03:41 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Tue, 31 Mar 2015 09:03:41 -0700 Subject: Deployment In-Reply-To: <43DAB354-6BFE-4C1B-A8BA-0F4E159C518F@gmail.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> <43DAB354-6BFE-4C1B-A8BA-0F4E159C518F@gmail.com> Message-ID: <7CD5D77D-E7A5-4E7D-B2C4-5B59039E3565@oracle.com> >>> Less brief background. >>> I?ve installed the java 9 ea releases. A while back for the jdk, today the jre as well. >> >> Be careful with those... 9 is undergoing a lot of changes so results may vary between ea releases. I highly recommend sticking with JDK 8 releases for now, especially for production code. >> >> Moving forward and investigating modularity is the only reason I'd recommend looking at 9 right now. > > I was trying to figure out some way to have 8 the default and still have 9 available for testing last night. Still working on it. Just move it out of /Library/Java/JavaVirtualMachines, then the stub tools won't be able to find it. Once moved you can use JAVA_HOME to tell the stub tools to use it or call it directly. -DrD- From mik3hall at gmail.com Tue Mar 31 21:04:19 2015 From: mik3hall at gmail.com (Michael Hall) Date: Tue, 31 Mar 2015 16:04:19 -0500 Subject: Deployment In-Reply-To: <7CD5D77D-E7A5-4E7D-B2C4-5B59039E3565@oracle.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> <43DAB354-6BFE-4C1B-A8BA-0F4E159C518F@gmail.com> <7CD5D77D-E7A5-4E7D-B2C4-5B59039E3565@oracle.com> Message-ID: On Mar 31, 2015, at 11:03 AM, David DeHaven wrote: >> I was trying to figure out some way to have 8 the default and still have 9 available for testing last night. Still working on it. > > Just move it out of /Library/Java/JavaVirtualMachines, then the stub tools won't be able to find it. Once moved you can use JAVA_HOME to tell the stub tools to use it or call it directly. Since I do most of my testing with one particular application of my own. I was trying to figure out how to embed Java 9 JRE or JDK into a copy of the application. I haven?t done that much with embedding. It seemed to indicate different files missing. I was thinking this was because the directory structure I was copying into Plugins wasn?t starting at the right place. I started wondering if the JavaAppLauncher code as is would even work with the current Java 9 JRE/JDK? I was then thinking that I?d launch some other way. Maybe make the application launch executable a bash script. I might loose AppleEvents that way though and the app just might have launch dependencies on running some AppleScript?s. It has become OS X?ified over time since I last tried doing anything with it on Windows. Do you know should JavaAppLauncher work with the Java 9 builds? 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 From david.dehaven at oracle.com Tue Mar 31 21:52:39 2015 From: david.dehaven at oracle.com (David DeHaven) Date: Tue, 31 Mar 2015 14:52:39 -0700 Subject: Deployment In-Reply-To: References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> <43DAB354-6BFE-4C1B-A8BA-0F4E159C518F@gmail.com> <7CD5D77D-E7A5-4E7D-B2C4-5B59039E3565@oracle.com> Message-ID: <8146612B-416B-4CE5-975D-9B25D233FA17@oracle.com> > Since I do most of my testing with one particular application of my own. I was trying to figure out how to embed Java 9 JRE or JDK into a copy of the application. > I haven?t done that much with embedding. It seemed to indicate different files missing. I was thinking this was because the directory structure I was copying into Plugins wasn?t starting at the right place. > I started wondering if the JavaAppLauncher code as is would even work with the current Java 9 JRE/JDK? > I was then thinking that I?d launch some other way. Maybe make the application launch executable a bash script. I might loose AppleEvents that way though and the app just might have launch dependencies on running some AppleScript?s. It has become OS X?ified over time since I last tried doing anything with it on Windows. > > Do you know should JavaAppLauncher work with the Java 9 builds? Yes, it should since it uses JLI (libjli.dylib) to start the vm. At least, I'm not aware of any problems with it. The same code should work with any reasonable version of JLI (JDK 7+). -DrD- From mik3hall at gmail.com Tue Mar 31 22:25:43 2015 From: mik3hall at gmail.com (Michael Hall) Date: Tue, 31 Mar 2015 17:25:43 -0500 Subject: Deployment In-Reply-To: <8146612B-416B-4CE5-975D-9B25D233FA17@oracle.com> References: <03CCC699-F943-44A9-B875-614D9ABD11EC@gmail.com> <78CD18D8-59E3-4BBB-99E5-5273DEA55D87@oracle.com> <43DAB354-6BFE-4C1B-A8BA-0F4E159C518F@gmail.com> <7CD5D77D-E7A5-4E7D-B2C4-5B59039E3565@oracle.com> <8146612B-416B-4CE5-975D-9B25D233FA17@oracle.com> Message-ID: >> Do you know should JavaAppLauncher work with the Java 9 builds? > > Yes, it should since it uses JLI (libjli.dylib) to start the vm. At least, I'm not aware of any problems with it. The same code should work with any reasonable version of JLI (JDK 7+). OK, maybe I?ll put a little more time into getting embedded to work. Maybe see if I can get javapackager to do the embedding for me. Otherwise, I?ll try to come up with some commandline/script launch. Compiler tools don?t work yet, they do 8, so that must be 9. But I imagine a lot of things just aren?t there yet. Thanks. 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