Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread David DeHaven
Ok, I tried: PreferredToolkit prefToolkit = getPreferredToolkit(); if (prefToolkit == HToolkit) { sprops.awt_headless = "true"; } after adding awt_headless to the props struct and it works OK. The only issue is that in a non-GUI login there's a big fat warning: 2013-10-22 20

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread David DeHaven
You can also just "ssh otheruser@localhost", the login session will have no Aqua session associated with the other user. That might even work with the current user... -DrD- > I think that triggering java.awt.headless=true is enough. The class instance > wrapping will be done automatically in

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread Anthony Petrov
I think that triggering java.awt.headless=true is enough. The class instance wrapping will be done automatically in java.awt.Toolkit.getDefaultToolkit(). A reliable way to test it is, I guess, as follows: log out of your GUI session, ssh to the Mac box, and try running a headless app (e.g. a

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread David DeHaven
[removing hotspot-dev and build-dev..] I can't look at the code at the moment as I'm focused on something else... Does the wrapping happen automagically at some point based on java.awt.headless? It doesn't look trivial to do this from within the scope of java_props_md.c, it seems the best I co

Re: Crash on startup in SnowLeopard 1.7.0_45

2013-10-22 Thread Johannes Schindelin
Hi Anthony, On Tue, 22 Oct 2013, Anthony Petrov wrote: > http://www.java.com/en/download/help/sysreq.xml > > > Mac OS X > > > > Intel-based Mac running Mac OS X 10.7.3 (Lion) or later. > > So, 10.6.8 is simply unsupported. Please consider upgrading your OS. I have to admit that this makes me v

Re: Crash on startup in SnowLeopard 1.7.0_45

2013-10-22 Thread Steve Hannah
Thanks for the reply. Yes, I'm aware of that but: https://wiki.openjdk.java.net/display/MacOSXPort/Main > Note that only Mac OS X 10.7.3 and higher will be an Oracle-supported > platform. It should continue to run on 10.6.8+ but that is not guaranteed. > As of 1-Jan-2012 there are no plans to in

Re: Crash on startup in SnowLeopard 1.7.0_45

2013-10-22 Thread Anthony Petrov
http://www.java.com/en/download/help/sysreq.xml Mac OS X Intel-based Mac running Mac OS X 10.7.3 (Lion) or later. So, 10.6.8 is simply unsupported. Please consider upgrading your OS. -- best regards, Anthony On 10/22/2013 08:27 PM, Steve Hannah wrote: I have an app that is bundled using ap

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread Sergey Bylokhov
Hello. I suppose we should request from sqe team to run the jck tests in the "true" headless mode via ssh(w/o headless option and w/o access to Aqua session). On 22.10.2013 21:54, Anthony Petrov wrote: We don't have to. IIRC, the choice of HToolkit on Mac was made by chance. Since we must lo

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread Anthony Petrov
We don't have to. IIRC, the choice of HToolkit on Mac was made by chance. Since we must load the lwawt lib in headless on Mac anyway, we may as well use the CToolkit (properly wrapped in the HeadlessToolkit). But there's no need to continue to use the HToolkit on Mac. -- best regards, Anthony

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread Leonid Romanov
There was a discussion why we use HToolkit instead of HeadlessToolkit: http://mail.openjdk.java.net/pipermail/awt-dev/2012-July/003114.html So we might want to continue using it. Also, please be aware that there is HToolkit check in GraphicsToolkit.getHeadlessProperty() On Oct 22, 2013, at 1:23

Crash on startup in SnowLeopard 1.7.0_45

2013-10-22 Thread Steve Hannah
I have an app that is bundled using appbundler. On Lion the app works fine. On Snow Leopard (10.6.8) it works fine if I bundle it with jdk1.7.0_25 (oracle), but if I bundle it with jdk1.7.0_45 (oracle), it crashes on startup. Crash log pasted at end of this message. Is this a known regression?

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread David DeHaven
Oops, you're right, it definitely crashes. I'll put that code back and take Artem's suggestion. -DrD- > Artem is correct. On Mac we can't start a GUI session via ssh, for example. > Thus we choose the headless mode then. The isInAquaSession() is supposed to > perform exactly this check. This

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread Anthony Petrov
Artem is correct. On Mac we can't start a GUI session via ssh, for example. Thus we choose the headless mode then. The isInAquaSession() is supposed to perform exactly this check. This logic needs to be preserved. -- best regards, Anthony On 10/22/2013 01:23 PM, Artem Ananiev wrote: Hi, David

[8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays

2013-10-22 Thread Alexander Scherbatiy
Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8011059 webrev: http://cr.openjdk.java.net/~alexsch/8011059/webrev.00 The IMAGE_SCALING rendering hint is added to the RenderingHints class. Enabling the image scaling rendering hint forces the SunGraphics2D

Re: RFR: 8025673: Disable X11 AWT toolkit

2013-10-22 Thread Artem Ananiev
Hi, David, thanks for additional cleanup. I have only one concern. Before the fix, we checked if there is an active Aqua session. When no session was found, we falled back to HToolkit. I think this logic should be preserved, but slightly corrected: fall back to HeadlessToolkit (with CToolkit