Jirb_swing undefined method local_graphics_environment
------------------------------------------------------
Key: JRUBY-1118
URL: http://jira.codehaus.org/browse/JRUBY-1118
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.0.0RC3
Environment: jdk1.5.0_06 on Windows XP
Reporter: Kimmo Lehto
Assignee: Thomas E Enebo
Priority: Minor
Jirb_swing.bat didn't work out of the box for the binary release of RC3:
C:\> jirb_swing
C:\ruby\jruby\jruby\bin\jirb_swing:17:in `method_missing': undefined method
`local_graphics_environment'
I got it to work by changing the line 17 as follows:
original:
avail_families =
java.awt.GraphicsEnvironment.local_graphics_environment.available_font_family_names
new:
avail_families =
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().available_font_family_names
After this I got an uninitialized constant error from the line that displays
the welcome message, which was solved by removing #{JRUBY_VERSION} from the
message.
--
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