Forum: JRuby (suse) use JRuby with eclipse and glimmer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Olivier L. (Guest)
on 2009-04-18 22:37
hi there!

here is my problem : I downloaded eclipse 3.4; then I compiled JRuby
from the subversion directory (it ran well), and I installed the RDT
plugin; at the first launch, eclipse told me it has detected the JRuby
installation : all this is good.
but my aim is to use eclipse, JRuby and glimmer (a project whose goal is
to build easily GUIs) (see
http://eclipse.dzone.com/articles/an-introduction-glimmer).
but I don't see clearly how to make it run all together.

from the archive of glimmer (at the address
https://rubyforge.org/frs/?group_id=4782&release_i...), I tried to
run a tic-tac-toe sample, without success :

this file:

*********************************************************
# Copyright (C) 2007-2008 Nick Malnick and Annas Al Maleh
# Licensed under the LGPL. See /COPYING.LGPL for more details.

#require File.dirname(__FILE__) + "/../../src/swt"
require File.dirname(__FILE__) + "/tic_tac_toe_board"


class TicTacToe

  include_package 'org.eclipse.swt'
  include_package 'org.eclipse.swt.widgets'
  include_package 'org.eclipse.swt.layout'

  include Glimmer

  def initialize
(...)
*********************************************************

causes this error:

tic_tac_toe.rb:10:in `method_missing': undefined method
`include_package' for TicTacToe:Class (NoMethodError)
  from tic_tac_toe.rb:5




and this file:
*********************************************************
# Copyright (C) 2007-2008 Nick Malnick and Annas Al Maleh
# Licensed under the LGPL. See /COPYING.LGPL for more details.

#require File.dirname(__FILE__) + "/../../src/swt"
require File.dirname(__FILE__) + "/tic_tac_toe_board"


class TicTacToe

#  include_package 'org.eclipse.swt'
#  include_package 'org.eclipse.swt.widgets'
#  include_package 'org.eclipse.swt.layout'

  include Glimmer

  def initialize
(...)
*********************************************************

causes this error:

tic_tac_toe.rb:14:in `const_missing': uninitialized constant
TicTacToe::Glimmer (NameError)
  from tic_tac_toe.rb:5


could you help me to make this sample run (maybe many steps will be
necessary, due to the successive errors that will appear).

thank you for having all read,

olivier.
This topic is locked and can not be replied to.