Swing Look And Feel for Yosemite

2014-10-20 Thread Emmanuel Puybaret
Hi,

OS X 10.10 Yosemite is out now and unless I missed something, Swing look and 
feel in new Java 7u72 / 8u25 wasn't prepared to welcome the changes in the user 
interface.
When can we expect a new version of Java that will integrate these changes? How 
can I eventually help?

Best regards,
--
Emmanuel PUYBARET
Email  : puyba...@eteks.com
Web: http://www.eteks.com
 http://www.sweethome3d.com



JRELoadError

2015-01-30 Thread Emmanuel Puybaret
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?

Best regards,
--
Emmanuel PUYBARET
Email  : puyba...@eteks.com
Web: http://www.eteks.com
http://www.sweethome3d.com



Re: JRELoadError

2015-02-01 Thread Emmanuel Puybaret
Thank you all for your suggestions.
Just to be clear, this error happens for very few users in a sandboxed version 
of the program that embeds a copy of the JRE.
The error happens with JavaAppLauncher and with the launcher provided with 
javafxpacakager.
Nevertheless, I requested to a user who encountered this issue to reset 
JAVA_HOME and to remove all JVMs he could find
in folders /Library/Internet Plug-Ins, /Library/Java/JavaVirtualMachines 
and /System/Library/Java/JavaVirtualMachines.
From his report, this didn't help at all. :-(

Any other idea of a possible conflict?

Thans for your help :-)
--
Emmanuel PUYBARET
Email  : puyba...@eteks.com
Web: http://www.eteks.com
 http://www.sweethome3d.com

 Le 1 févr. 2015 à 17:42, Peter J Slack psl...@wavedna.com a écrit :
 
 Just to clarify my post, I'm suggesting this is potentially the reason why 
 some canned java launchers may not be working with openjdk 1.7 + as opposed 
 to recommending using java 1.6. 
 
 As far as canned launchers go, I would recommend Oracle's FX Ant.  not only 
 does it embed java for you and create an application bundle , it creates a 
 package installer, also works for windows.
 
 the FX:DEPLOY task constructs the launcher for your project
 
 http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference.htm 
 http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference.htm
 
 
 
 
 
 On Sat, Jan 31, 2015 at 7:49 PM, Mike Swingler swing...@apple.com 
 mailto:swing...@apple.com wrote:
 Please search for the Java 7, 8, 9 JVM symbols before trying to find the Java 
 6 symbols. We are actively discouraging developers from using Apples Java SE 
 6, since it has been deprecated for almost 5 years, and will be unavailable 
 for some future version of OS X. We want developers and users using the 
 best/newest Java available, even if Apple's old one is installed.
 
 Thanks
 Mike Swingler
 Apple Inc.
 
  On Jan 31, 2015, at 8:45 AM, Peter J Slack psl...@wavedna.com 
  mailto:psl...@wavedna.com wrote:
 
  The Mac version JRE 1.6 uses different symbols than 1.7 and 1.8 for the 2
  key functions used by a launcher to load and run JVM
 
  in order to remedy this I've searched both symbols in case one fails when
  launching a JVM in my own launcher
 
  Launchers have to load the library into memory and then wrap 2 key
  functions.  Apple names these functions differently
 
  here's a code snippet in C illustrating how I've adapted setting up to
  launch the JVM by loading in memory, if the Apple naming fails I revert to
  openjdk naming
 
  //first see if the apple naming is active
  WRAPPED_JNI_CreateJavaVM my_JNI_CreateJavaVM = (WRAPPED_JNI_CreateJavaVM)
  dlsym(handle,JNI_CreateJavaVM_Impl);
 
  //we need to try the possibility that this is not Apple JVM where they
  mangle the names by appending _impl
 if(my_JNI_CreateJavaVM == NULL){
 
//this is the case for openjdk 1.7 + where they use the
  traditional symbols in jvm.dll
  my_JNI_CreateJavaVM = (WRAPPED_JNI_CreateJavaVM)
  dlsym(handle,JNI_CreateJavaVM);
 
  }
 
  WRAPPED_JNI_GetCreatedJavaVMs my_JNI_GetCreatedJavaVMs =
  (WRAPPED_JNI_GetCreatedJavaVMs)dlsym(handle,JNI_GetCreatedJavaVMs_Impl);
 
  if(my_JNI_GetCreatedJavaVMs == NULL){
  my_JNI_GetCreatedJavaVMs =
  (WRAPPED_JNI_GetCreatedJavaVMs)dlsym(handle,JNI_GetCreatedJavaVMs);
  }
 
 
 
 
 
 
 
 
 
  On Fri, Jan 30, 2015 at 8:43 PM, Michael Hall mik3h...@gmail.com 
  mailto:mik3h...@gmail.com wrote:
 
  On Jan 30, 2015, at 4:00 PM, Emmanuel Puybaret puyba...@eteks.com 
  mailto:puyba...@eteks.com wrote:
 
  Hi,
 
  I developed a sandboxed version of Sweet Home 3D that comes with its own
  copy of JRE 7.
  Miserably, a few users reported recently that they got a JRELoadError
  when they launch the application.
  I tried to update from JRE 7u72 to JRE 7u76, tried to replace
  JavaAppLauncher by the launcher generated by javafxpackager,  and also
  tried to replace the JRE 7 copy by a JRE 8 copy, but these users reported
  to me it didn't fix this issue.
 
  Would have any of you encounter this problem and/or have an idea how to
  fix it?
 
  A number of apps seem to have had the issue if you search on the subject
  error.
  This post….
 
 
  http://jedit.9.x6.nabble.com/jEdit-users-JRELoadError-launching-jEdit-5-2pre1-after-mavericks-upgrade-but-no-java-version-or-JAVAe-td5005300.html
   
  http://jedit.9.x6.nabble.com/jEdit-users-JRELoadError-launching-jEdit-5-2pre1-after-mavericks-upgrade-but-no-java-version-or-JAVAe-td5005300.html
 
  had a lot of mail list noise but ended up with some valid enough
  suggestions as to what the possible conflicts might be.
  Use of JAVA_HOME
  conflicting with the browser installed JRE version
  some sort of embedded symlink back to an apple JRE
  the possibilities that I remember.
  It suggested a work around of using a 3rd party package for running an app
  configuration that would work with both Apple and Oracle JRE’s.
  There might be some

FileDialog unusable in applets running in Safari

2015-03-09 Thread Emmanuel Puybaret
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
 
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 
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  : puyba...@eteks.com
Web: http://www.eteks.com
 http://www.sweethome3d.com