🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #478

Re: JRuby - jak zacząć ?

#478
From: Marcin Mielżyński
Date: Mon, 30 Apr 2007 10:35
43 lines
1735 bytes
gierlasinski@gmail.com wrote:

> chulała) już cosik nie bardzo... Dostaje taki oto błąd:
> 
> http://img443.imageshack.us/img443/9646/errorne2.jpg

Za mało informacji, w każdym razie to działa:

require 'java'

JFrame = javax.swing.JFrame
JPanel = javax.swing.JPanel

class Main < JFrame

    def initialize
    	super("Okno glowne")
	setDefaultCloseOperation(JFrame::EXIT_ON_CLOSE)
	add DanePanel.new
    end

end


class DanePanel < JPanel

   def initialize
     super
   end

end

Main.new.show


> 
> Moja prośba jest następująca: czy ktoś mógłby krótko objaśnić co po
> kolei należy zrobić aby skompilować pliczek *.rb do *.jar w JRuby ^^

http://www.headius.com/jrubywiki/index.php/JRuby_Compiler


lopex
Technical Details
Message-ID: <f14gpc$k95$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <1177775273.863414.80920@l77g2000hsb.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: Marcin Mielżyński <lopx@gazeta.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: JRuby - jak zacząć ?
Date: Mon, 30 Apr 2007 12:35:58 +0200
Organization: Onet.pl
Lines: 43
Message-ID: <f14gpc$k95$1@news.onet.pl>
References: <1177775273.863414.80920@l77g2000hsb.googlegroups.com>
NNTP-Posting-Host: cuo178.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1177929324 20773 83.19.70.178 (30 Apr 2007 10:35:24 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Mon, 30 Apr 2007 10:35:24 +0000 (UTC)
X-Sender: 5Da2qcG7AWj7WISFX859Php/OS6q4VnB
In-Reply-To: <1177775273.863414.80920@l77g2000hsb.googlegroups.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit