Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created October 13, 2012 12:00
Show Gist options
  • Save jonleighton/3884342 to your computer and use it in GitHub Desktop.
Save jonleighton/3884342 to your computer and use it in GitHub Desktop.
$ ruby -I jgrapht-0.8.3/lib graph.rb
NameError: cannot load Java class org.jgrapht.graph.SimpleGraph
get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at /home/turnip/.rbenv/versions/jruby-1.6.7.2/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:51
(root) at graph.rb:4
require 'java'
require 'jgraph.jar'
java_import org.jgrapht.graph.SimpleGraph
graph = SimpleGraph.new(DefaultEdge)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment