My Recent Pastes (891 and counting)

Pastes by headius (891 and counting)

Pages:

Below are the 6 most recent pasties by headius.

February 13, 2007
3:12PM EDT
by headius

require 'java'

import java.lang.System
import java.io

February 13, 2007
2:34PM EDT
by headius

~/NetBeansProjects/jruby $ jruby -e "require 'java'; module Foo; include_package 'org.jruby.util'; end; p defined? Foo::PackageSearch"
nil
~/NetBeansProjects/jruby $ jruby -e "require 'java'; module Foo; import 'org.jruby.util'; end; p defined? Foo::PackageSearch"
"constant"

February 13, 2007
11:09AM EDT
by headius

require 'java' 

  include_class 'java.awt.Color'
  include_class 'java.awt.image.BufferedImage'
  include_class 'java.io.DataOutputStream'

February 13, 2007
9:54AM EDT
by headius

set CLASSPATH=C:\jfreechart-1.0.3\jfreechart-1.0.3\lib\jfreechart-1.0.3.jar;C:\jfreechart-1.0.3\jfreechart-1.0.3\lib\jcommon-1.0.8.jar

February 07, 2007
2:07PM EDT
by headius

=> Booting WEBrick...
/Users/headius/NetBeansProjects/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: uninitialized class variable @@allow_concurrency in ActiveRecord::Base (NameError)
        from /Users/headius/NetBeansProjects/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
        from /Users/headius/NetBeansProjects/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27

February 07, 2007
5:51AM EDT
by headius

~/tmp/demo/testapp $ jruby script/generate migration person
/Users/headius/NetBeansProjects/jruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:14:in `method_missing': undefined method `cattr_accessor' for ActiveRecord::Base:Class (NoMethodError)
        from /Users/headius/NetBeansProjects/jruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:14

Previous page