LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2008, 03:48 AM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
jirb: require java => false ????


Hello all,

Ok I'm new to the ruby world and a complete newbie in jruby/java so I'm probably being dump but what is wrong here? Why isn't require 'java' working and 2nd (probably be fixed I guess when require java works) why is require_gem an undefined method??

Cheers,

Paul
Code:
/local/Ruby> echo $JAVA_HOME
/local/jdk1.6.0_05
:/local/Ruby> echo $JRUBY_HOME
/local/Ruby/Jruby/jruby-1.1RC3/

:/local/Ruby> jirb --version
irb 0.9.5(05/04/13)
irb(main):001:0> require 'java'
=> false
irb(main):002:0> include Java
=> Object
require 'rubygems'
=> true

require_gem 'ActiveRecord-JDBC'
NoMethodError: undefined method `require_gem' for main:Object
        from (irb):7:in `signal_status'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 Require user with Require group Russianspi Linux - Server 2 01-30-2008 11:21 AM
os: false ungua Linux - Newbie 2 02-02-2007 07:00 AM
true or false? alaios Programming 7 07-16-2005 10:54 AM
question about /etc/false notstrider Debian 2 10-23-2004 12:52 AM
problem with installing PostgreSQL . Configuring false with Java kernelvn Linux - Software 0 08-30-2004 04:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration