[jira] Created: (JRUBY-2510) JRuby crashes with -XstartOnFirstThread on carbon

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (JRUBY-2510) JRuby crashes with -XstartOnFirstThread on carbon

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JRuby crashes with -XstartOnFirstThread on carbon
-------------------------------------------------

                 Key: JRUBY-2510
                 URL: http://jira.codehaus.org/browse/JRUBY-2510
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.1
         Environment: carbon
            Reporter: Ketan Padegaonkar


To reproduce this bug, start jruby as: jruby -J-XstartOnFirstThread
Wait a while as jruby crashes with no warnings or errors printed on the console.

From http://www.eclipse.org/swt/faq.php#carbonapp:
If you run a Java application that uses Carbon via JNI, the application is not registered with the OS as a 'normal' UI application. As a consequence, it has no entry in the dock and it cannot be activated. AWT (or Swing) based applications don't have this problem because they seem to use undocumented SPI to register themselves.
To work around this problem you'll have to pass the -XstartOnFirstThread option to the java executable as follow:

         java -XstartOnFirstThread -cp swt.jar:. ControlExample



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email