<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Martin<br><div><br><blockquote type="cite"><div>On Mar 23, 2023, at 6:00 AM, Martin Pernollet <martin.pernollet@protonmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
    <div class="protonmail_signature_block-user protonmail_signature_block-empty">
        
            </div>
    
            </div><div class="protonmail_quote"><blockquote class="protonmail_quote" type="cite"><div><div><span style="font-size: 0.875rem;">Start another java process -XstartOnMainThread that does the OpenGL part from a Swing application? </span></div></div></blockquote><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-size: 0.875rem;"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-size: 0.875rem;">Sorry I do not understand your question. </span><span style="font-size: 0.875rem;">If you speak about triggering two process with -XstartOnFirstThread, I think they might both freeze</span><span style="font-size: 0.875rem;">. Or worse, one freeze and the other one get kick/stopped by the former.</span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-size: 0.875rem;"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-size: 0.875rem;">I can try this next week because I do not have a macOS with me up to next thursday.</span></div></div></div></blockquote><div><br></div>You launch a Swing application that in turn starts a java command process -XstartOnFirstThread which does your OpenGL, but no Swing. It writes out your image data which the Swing process reads and renders. It sounded like the OpenGL simply produces and Swing consumes. There is not ongoing interaction between the two so they could be fairly easily separated? I haven’t really looked at the code yet so maybe this separation wouldn’t be so easy.</div><div><br></div><div>If you think this might be feasible I could be interested in looking at it.</div><div><br><blockquote type="cite"><div><div class="protonmail_quote"><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-size: 0.875rem;"><br></span></div><blockquote class="protonmail_quote" type="cite"><div><div><span style="font-size: 0.875rem;">One hang up there though might be that I don’t think java applications that include the java native commands are allowed in the Mac App Store. Another bug due to each command has it’s own unique CFBundleIdentifier but that identifier is always the same and Apple doesn’t allow duplicates in the App Store.</span></div></div></blockquote><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="font-size: 0.875rem;"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Being able to deploy on App Store is not an immediate need for me but this is a very interesting point to consider. I'll try to understand how CFBundleIdentifier relates to -XstartOnFIrstThread.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div></div></div></blockquote><br></div><div>This bug came up concerning jpackage applications. The resolution was to not allow jpackage applications that indicate they are going to the Mac App Store to have native java commands. Workarounds might be possible. Maybe at least at this stage you don’t see the code being used in this way. </div><div><br></div><div>If you get to this point workarounds might be possible. </div><div><br></div><div>Mike</div><br></body></html>