|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
why require doesnt workI have JRuby 1.8.6 that work on windows xp and my IDE is netbeans 6.7.
require's method doesnt work when I want work with Win32API or Qt. the code is: require "Win32API" message = "This is a sample Windows message box generated using Win32API" title = "Win32API from Ruby" api = Win32API.new('user32','MessageBox',['L', 'P', 'P', 'L'],'I') api.call(0,message,title,0) my problem is when I just type require 'Win32API' its not work and give me an error: `require': no such file to load -- Win32API (LoadError) Should I do special work?like copy file or else?I have same problem with Qt! -- Posted via http://www.ruby-forum.com/. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: why require doesnt workHi Midose ,
How do you launch your JRuby? Oh, and there is no such JRuby version as 1.8.6. Can you show the output from jruby -v? I just tried your example in the latest JRuby and it worked just fine for me here. Thanks, --Vladimir On Mon, Nov 2, 2009 at 2:13 PM, Midose Midose <lists@...> wrote: > I have JRuby 1.8.6 that work on windows xp and my IDE is netbeans 6.7. > require's method doesnt work when I want work with Win32API or Qt. > > the code is: > > > require "Win32API" > > message = "This is a sample Windows message box generated using > Win32API" > title = "Win32API from Ruby" > > api = Win32API.new('user32','MessageBox',['L', 'P', 'P', 'L'],'I') > api.call(0,message,title,0) > > > my problem is when I just type require 'Win32API' its not work and give > me an error: > `require': no such file to load -- Win32API (LoadError) > > Should I do special work?like copy file or else?I have same problem with > Qt! > -- > Posted via http://www.ruby-forum.com/. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: why require doesnt work> there is no such JRuby version as 1.8.6. Im sorry, you say true it's JRuby 1.2.0 >How do you launch your JRuby? I use JRuby in Netbeans 6.7(IDE). sorry if I can't speak very good and thanks for your help, Midose -- Posted via http://www.ruby-forum.com/. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: why require doesnt workHi Midose,
first, you should try to update your JRuby Environment to JRuby 1.3.1 (or 1.4.0RC3 if you like). Then please try again. Cheers Michael Am 02.11.2009 um 15:08 schrieb Midose Midose: > >> there is no such JRuby version > as 1.8.6. > Im sorry, you say true it's JRuby 1.2.0 > >> How do you launch your JRuby? > I use JRuby in Netbeans 6.7(IDE). > > sorry if I can't speak very good and thanks for your help, > Midose > > -- > Posted via http://www.ruby-forum.com/. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: why require doesnt workHi Midose,
On Mon, Nov 2, 2009 at 3:08 PM, Midose Midose <lists@...> wrote: > >> there is no such JRuby version > as 1.8.6. > Im sorry, you say true it's JRuby 1.2.0 JRuby 1.2 didn't support Win32API, so you'd need a more recent version. Actually, it seems that even JRuby 1.3.1 didn't support Win32API, but it should work in JRuby 1.4.0RC3 (and in the upcoming 1.4.0 release). Thanks, --Vladimir --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Re: why require doesnt work> JRuby 1.2 didn't support Win32API, so you'd need a more recent > version. Actually, it seems that even JRuby 1.3.1 didn't support > Win32API, but it should work in JRuby 1.4.0RC3 (and in the upcoming > 1.4.0 release). I don't know this, sorry. thanks for your help, -Midose -- Posted via http://www.ruby-forum.com/. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |