Last updated August 11, 2011 18:23, by kevinpascal
Feedicon  
== THIS PAGE HAS MOVED. Do not edit == New Location <a href="http://wiki.jruby.org/CallingJavaFromJRuby">CallingJavaFromJRuby at wiki.jruby.org</a> [[Home|&raquo; JRuby Project Wiki Home Page]] <h1>Scripting Java from JRuby (jruby 1.0+)</h1> __TOC__ == An example == All the following examples can be "run" either from the command line, or by using '''jirb_swing''', the Swing-based IRB console that comes with JRuby. You can start jirb_swing like <tt>$ jruby -S jirb_swing</tt>. A special <tt>require</tt> <tt>'java'</tt> directive in your file will give you access to any bundled Java libraries (classes within your java class path). However, this will ''not'' give you access to any non-bundled libraries. A bit more is needed for that, which will be discussed later. The following code shows typical use. It should pop up a small window showing "Hello" on your screen. <pre name="ruby"> # This is the 'magical Java require line'. require 'java' # With the 'require' above, we can now refer to things that are part of the # standard Java platform via their full paths. frame = javax.swing.JFrame.new("Window") # Creating a Java JFrame label = javax.swing.JLabel.new("Hello") # We can transparently call Java methods on Java objects, just as if they were defined in Ruby. frame.getContentPane.add(label) # Invoking the Java method 'getContentPane'. frame.setDefaultCloseOperation(javax.swing.JFrame::EXIT_ON_CLOSE) frame.pack frame.setVisible(true) </pre> '''Note:''' If you are testing the example above in the Swing IRB console '''jirb_swing''', change the default close operation to DISPOSE_ON_CLOSE, or HIDE_ON_CLOSE unless you want '''jirb_swing''' to also close when you close the second window. Here's another example (showing results from testing these statements in the '''jirb''' console). Let's say you wanted to get a list of network interfaces. You can get Java API docs at <tt>[http://java.sun.com/j2se/1.5.0/docs/api/index.html/ java.net.NetworkInterface]</tt>. Here's how to access the methods from this Java Class from from JRuby: irb(main):013:0> ni = java.net.NetworkInterface.networkInterfaces => #<#<Class:01x7e666f>:0x855a27 @java_object=java.net.NetworkInterface$1@821453> '''<tt>ni</tt>''' is a Ruby variable holding a Java Enumeration of NetworkInterfaces. You can see the Class ancestry for <tt>ni</tt> like this: irb(main):029:0> ni.class.ancestors => [#<Class:01x7e666f>, Java::JavaUtil::Enumeration, Enumerable, Java::JavaLang::Object, ConcreteJavaProxy, JavaProxy, JavaProxyMethods, Object, Java, Kernel] Enumeration elements can't be accessed using Array#[] syntax but they do appear as Arrays for many other purposes. You can find out both the Java and Ruby methods for an Enumeration of NetworkInterfaces like this: irb(main):032:0> java.net.NetworkInterface.networkInterfaces.methods => ["__jsend!", "has_more_elements", "hasMoreElements", "next_element", "nextElement", "each", "reject", "member?", "grep", "include?", "min", "sort", "any?", "partition", "each_with_index", "collect", "find_all", "to_a", "inject", "detect", "map", "zip", "sort_by", "max", "entries", "all?", "find", "select", "hashCode", "notifyAll", "getClass", "to_string", "toString", "get_class", "notify_all", "equals", "hash_code", "wait", "notify", "__jcreate!", "java_class", "eql?", "synchronized", "to_java_object", "equal?", "java_object", "java_object=", "to_s", "==", "hash", "java_kind_of?", "handle_different_imports", "include_class", "display", "object_id", "frozen?", "org", "__id__", "clone", "__send__", "id", "__jtrap", "instance_eval", "singleton_methods", "is_a?", "extend", "instance_variable_set", "freeze", "remove_instance_variable", "=~", "private_methods", "methods", "instance_variable_get", "nil?", "send", "untaint", "com", "type", "class", "===", "instance_of?", "protected_methods", "tainted?", "kind_of?", "javax", "inspect", "java", "instance_exec", "taint", "dup", "public_methods", "instance_variable_defined?", "respond_to?", "method", "instance_variables"] Because JRuby supports the <tt>#each</tt> method on Java Enumerations you can do this: irb(main):011:0> java.net.NetworkInterface.networkInterfaces.each {|i| puts i; puts } name:en1 (en1) index: 5 addresses: /63.138.152.170; /fe80:0:0:0:21b:63ff:febf:4a9d%5; name:en0 (en0) index: 4 addresses: /63.138.152.125; /fe80:0:0:0:21b:63ff:fe1e:b2da%4; name:lo0 (lo0) index: 1 addresses: /127.0.0.1; /fe80:0:0:0:0:0:0:1%1; /0:0:0:0:0:0:0:1%0; == Accessing and Importing Java Classes == === Require a jar file to make resources in the jar discoverable within JRuby === To use resources within a jar file from JRuby, the jar file must either be on the classpath *or* be made available with the <tt>require</tt> method: require 'path/to/mycode.jar' This <tt>require</tt> makes the resources in <tt>mycode.jar</tt> discoverable by later commands like <tt>import</tt> and <tt>include_package</tt>. Note that loading jar-files via <tt>require</tt> searches along the $LOAD_PATH for them, like it would for normal ruby files. ===Load a .class File=== If you need to load from an existing .class file(or one that's not camelcase), the following has examples: http://www.ruby-forum.com/topic/216572#939791 Basically it's <tt>$CLASSPATH << "target/classes"; import org.asdf.ClassName</tt> where "target/classes/org/asdf/ClassName.class" exists. Note also that this will need to be a full path name or relative to the directory the script starts in, as the JVM doesn't seem to respond to Dir.chdir very well. === Referencing a Java Class by Full Class Name === You can reference a Java class in JRuby in at least two different ways. * The first is to map Java names like <tt>org.foo.department.Widget</tt> to Ruby nested modules format. This works as follows: Java: org.foo.department.Widget Ruby: Java::OrgFooDepartment::Widget That is: ** Java packages all reside within the <tt>Java</tt> module. ** The package path is then transformed by removing the dots and converting to ''CamelCase'' This also means that, just as in Java, packages are not nested, but are each associated with their own unique module name. * Second way: for the top-level Java packages <tt>java</tt>, <tt>javax</tt>, <tt>org</tt>, and <tt>com</tt> you can type in a fully qualified class name basically as in Java, for example, <tt>java.lang.System</tt> or <tt>org.abc.def.className</tt> You can get the same effect for your own (custom) top-level packages, as follows. Let's assume that your packages are called <tt>edu.school.department.Class</tt>. Then, you define def edu Java::Edu end And then you can use use usual Java package names like <tt>edu.abc.def.ClassName</tt> Note also that you must use the right capitalization, though see below for how you can change and assign it to your own liking. === Using a Java Class Without The Full Path Name === You can always access any Java class that has been loaded or is in the classpath by specifying its full name. With the <tt>java_import</tt> statement or <tt>import</tt> statement, you can make the Java class available only by its class name, just as in Java. '''Example''': java_import and use the <tt>java.lang.System</tt> class. require 'java' java_import java.lang.System version = System.getProperties["java.runtime.version"] You could also do it with just straight import, as well. require 'java' import java.lang.System version = System.getProperties["java.runtime.version"] '''Note:''' As noted in [http://jira.codehaus.org/browse/JRUBY-3171 this bug report], <tt>java_import</tt> is the newer and safer, way to import Java classes. After this point, the "System" constant will be available in the global name space (i.e. available to any script). The import keyword allows you to copy and paste (and re-use) imports from your Java code straight into Ruby. You can also get the same effect by reassigning a Java class to a new constant, like require 'java' Sys = java.lang.System version = Sys.getProperties["java.runtime.version"] === Use include_package within a Ruby Module to import a Java Package's classes on const_missing === Use <tt>include_package "package_name"</tt> in a Ruby Module to support namespaced access to the Java classes in the package. This is similar to java's "package xxx.yyy.zzz;" format. It is also legal to use <tt>import "package_name"</tt>. "Example 1": module M include_package "org.xxx.yyy" # now any class within "org.xxx.yyy" will be available within # this module, ex if "org.xxx.yyy.MyClass" exists # a = MyClass.new end '''Example''': create a Ruby Module called <tt>JavaLang</tt> that includes the classes in the Java package <tt>java.lang</tt>. module JavaLangDemo include_package "java.lang" # alternately, use the #import method import "java.lang" end Now you can prefix the desired Java Class name with <tt>JavaLangDemo::</tt> to access the included Classes: version = JavaLangDemo::System.getProperties["java.runtime.version"] => "1.5.0_13-b05-237" processors = JavaLangDemo::Runtime.getRuntime.availableProcessors => 2 All Java classes in the package will become be available in this class/module, unless a constant with the same name as a Java class is already defined. The use of the Module name to scope access to the imported Java class is also helpful in cases where the Java class has the same name as an existing Ruby class. For example if you need to create an instance of a <tt>java.io.File</tt> object, this code will work: import java.io.File newfile = File.new("file.txt") => #<Java::JavaIo::File:0xdc6f00 @java_object=file.txt> However you've now redefined the Ruby constant File and can no longer access the Ruby File class. Executing this: File.open('README', 'r') {|f| puts f.readline } Will produce this error: NoMethodError: private method `open' called for Java::JavaIo::File:Class If instead you create a module called <tt>JavaIO</tt> and include the package in the module definition: module JavaIO include_package "java.io" end You can now create a new instance of the Java class File without shadowing the Ruby version of the File class: newfile = JavaIO::File.new("file.txt") => #<Java::JavaIo::File:0x15619c @java_object=file.txt> And the Ruby File class is still accessible: File.open('README', 'r') {|f| puts f.readline } JRuby - A Java implementation of the Ruby language => nil ==== Making them accessible in the main name space ==== You can set const_missing to make them accessible in more than just a module. See http://www.ruby-forum.com/topic/216629 though there might be a better way. ==== Using within classes within module ==== NB that currently this "include_package" lookup doesn't work within any sub-modules or sub-classes. See http://jira.codehaus.org/browse/JRUBY-5107 You could override const_missing, though (see above), if you wanted that behavior. === Using Static Java Enumerations === Java <tt>enum</tt>s are accessible from Ruby code as constants: lock.try_lock(5000, java.util.concurrent.TimeUnit::MILLISECONDS) or java_import java.util.concurrent.TimeUnit lock.try_lock(5000, TimeUnit::MILLISECONDS) === Gotchas === JRuby automatically binds the following names in the context of a class to the top-level Java packages: com, org, java, javax. This means that you can reference these packages without having to explicitly require or import them. This takes effect for all Ruby classes in an application where a require 'java' appears. This binding takes place in precedence to the classes "method_missing" handling. If you do not want this behaviour for a specific class, you can undefine it for that class. Here's an example that will execute identically under Ruby and JRuby: <pre> # Note: Comment out for Ruby test. Uncomment for JRuby test. require 'java' class MethodMissing # JRuby: Undefine the standard "automatic" bindings to Java, to avoid any automatic binding. undef org, com, java, javax def method_missing(m, *args) puts "method_missing: #{m}." "This is what I return from method missing." end end mm = MethodMissing.new result = mm.org puts "Result: #{result} Type: #{result.class.name}" </pre> == Calling a Java Method == === Alternative Names and Beans Convention === In Ruby, one usually prefers <tt>method_names_like_this</tt>, while Java traditionally uses <tt>methodNamesLikeThis</tt>. If you want, you can use Ruby-style method names instead of the Java ones. For example, these two calls are equivalent java.lang.System.currentTimeMillis java.lang.System.current_time_millis JRuby also translates methods following the 'beans-convention': x.getSomething becomes x.something x.setSomething(newValue) becomes x.something = new_value x.isSomething becomes x.something? You don't have to use these alternatives, but they can make the interaction with Java code feel more Ruby-like. === Constructors === <tt>JavaClass.new</tt> or <tt>JavaClass.new(x,y,z)</tt> generally works as expected. If you wish to select a particular constructor by signature use reflection: # Get the the three-integer constructor for this class construct = JavaClass.java_class.constructor(Java::int, Java::int, Java::int) # Use the constructor object = cons.new_instance(0xa4, 0x00, 0x00) === Beware of Java generics === If a Java class is defined with Java generics, the types are erased during compilation for backwards compatibility. As a result. JRuby will have problems with automatic type conversion. For example, if you have a <tt>Map<String,String></tt>, it will be seen as a simple <tt>Map</tt>, and JRuby will not be able to determine the correct types using reflection. === Additional Java Method Access === JRuby defines a number of additional methods for Java objects. * <tt>java_class</tt> returns the Java class of an object. * <tt>java_kind_of?</tt> works like the <tt>instanceof</tt> operator. * <tt>java_object</tt> returns the underlying Java object. This is useful for reflection. * <tt>java_send</tt> overrides JRuby's dispatch rules and forces the execution of a named Java method on a Java object. This is useful for Java methods, such as <tt>initialize</tt>, with names that conflict with built-in Ruby methods. More below. ''Added in JRuby 1.4'' * <tt>java_method</tt> retrieves a bound or unbound handle for a Java method to avoid the reflection inherent in <tt>java_send</tt>. More below. ''Added in JRuby 1.4'' === Calling masked or unreachable Java methods with <tt>java_send</tt> === Sometimes you need to call <tt>initialize</tt> AFTER the <tt>.new()</tt> call, for example the <tt>RTPManager</tt> class in JMF. Unfortunately, this method is masked by Ruby's <tt>initialize</tt> constructor method. As of JRuby 1.4, the <tt>java_send</tt> method can be used to call this, and any other, masked method: @mgr = javax.media.rtp.RTPManager.newInstance localhost = java.net.InetAddress.getByName("127.0.0.1") localaddr = javax.media.rtp.SessionAddress.new(localhost, 21000, localhost, 21001) @mgr.java_send :initialize, [javax.media.rtp.SessionAddress], localaddr Here is another example of calling the <tt>ArrayList.add</tt> method with <tt>java_send</tt>: import java.util.ArrayList list = ArrayList.new list.java_send :add, [Java::int, java.lang.Object], 0, 'foo' puts list.java_send :toString # => "[foo]" Note the second argument, which is an array of types indicating the exact method signature desired. This is useful for disambiguating methods that are overloaded on similar types such as <tt>int</tt> and <tt>long</tt>. === Reflection === Here is an example that shows using java's reflection within jruby @mgr = javax.media.rtp.RTPManager.newInstance localhost = java.net.InetAddress.getByName("127.0.0.1") localaddr = javax.media.rtp.SessionAddress.new(localhost, 21000, localhost, 21001) method = @mgr.java_class.declared_method(:initialize, javax.media.rtp.SessionAddress ) method.invoke @mgr.java_object, localaddr.java_object === Bound and Unbound Java methods with <tt>java_method</tt> === <tt>java_send</tt> relies on reflection and may lead to poor performance in some cases. Each time it is called, the desired method must be relocated. With the <tt>java_method</tt> method you can get a reference to any overloaded Java method as a Ruby Method object: # get a bound Method based on the add(int, Object) method from ArrayList add = list.java_method :add, [Java::int, java.lang.Object] add.call(0, 'foo') Similarly, an Unbound method object can be retrieved: # get an UnboundMethod from the ArrayList class: toString = ArrayList.java_method :toString toString.bind(list).call # => [foo, foo] === Conversion of Types === ==== Ruby to Java ==== ''See the JRuby rspec source code dir'' <tt>spec/java_integration</tt> ''for many more examples.'' When calling Java from JRuby, primitive Ruby types are converted to default boxed Java types: {| border="1" style="text-align:left;" cellspacing="2" cellpadding="5" |- style="background:silver" |'''Ruby Type''' |'''Java Type''' |- | "foo" || <tt>java.lang.String</tt> |- | 1 || <tt>java.lang.Long</tt> |- | 1.0 || <tt>java.lang.Double</tt> |- | true, false || <tt>java.lang.Boolean</tt> |- | 1 << 128 || <tt>java.math.BigInteger</tt> |} However, this does not mean that you cannot call methods expecting a primitive type. You can also pass an integer to a method expecting a double value. JRuby usually tries quite hard to find a method that can understand your parameters. If JRuby cannot find a matching method, it tries to pass the actual JRuby objects instead (that is, the Java objects from the JRuby implementation). A consequence of this is that if this fails you will see an error message stating that JRuby hasn't found a method taking an object of class <tt>org.jruby.RubyObject</tt> instead of the actual type. If JRuby is not finding the exact method you want to call, perhaps because of extreme ambiguity like <tt>foo(int)</tt> vs. <tt>foo(long)</tt>, the <tt>java_send</tt> method can be used to disambiguate. See below. ==== Java to Ruby ==== When primitive Java types are passed to JRuby they are converted to the following Ruby types: {| border="1" style="text-align:left;" cellspacing="2" cellpadding="5" |- style="background:silver" |'''Java Type'''||'''Ruby Type''' |- | <tt>public String</tt> || <tt>String</tt> |- | <tt>public byte</tt> || <tt>Fixnum</tt> |- | <tt>public short</tt> || <tt>Fixnum</tt> |- | <tt>public char</tt> || <tt>Fixnum</tt> |- | <tt>public int</tt> || <tt>Fixnum</tt> |- | <tt>public long</tt> || <tt>Fixnum</tt> |- | <tt>public float</tt> || <tt>Float</tt> |- | <tt>public double</tt> || <tt>Float</tt> |} The Java Booleans true and false are coerced to the Ruby singleton classes TrueClass and FalseClass which are represented in Ruby with the instances true and false. The null Java object is coerced to the Ruby class NilClass which is represented in Ruby as the instance nil. ==== Java Primitive Classes ==== Java primitive classes can be found in the Java module. For example, <code>Java::byte</code> represents the primitive type byte in java. You can get its class as follows: {| border="1" |- style="background:silver" |'''Ruby Code''' ||'''Java Class''' |- | <tt>Java::JavaClass.for_name("byte") </tt> || <tt>Java::byte.java_class</tt> |- | <tt>Java::JavaClass.for_name("boolean") </tt> || <tt> Java::boolean.java_class</tt> |- | <tt>Java::JavaClass.for_name("byte") </tt> || <tt> Java::byte.java_class</tt> |- | <tt>Java::JavaClass.for_name("short") </tt> || <tt> Java::short.java_class</tt> |- | <tt>Java::JavaClass.for_name("char") </tt> || <tt> Java::char.java_class</tt> |- | <tt>Java::JavaClass.for_name("int") </tt> || <tt> Java::int.java_class</tt> |- | <tt>Java::JavaClass.for_name("long") </tt> || <tt> Java::long.java_class</tt> |- | <tt>Java::JavaClass.for_name("float") </tt> || <tt> Java::float.java_class</tt> |- | <tt>Java::JavaClass.for_name("double") </tt> || <tt> Java::double.java_class</tt> |} == Arrays == There are two ways of constructing Java arrays. One is to use the <code>to_java</code> method of the class Array. The other is to use the <tt>[]</tt> method for the primitive Java types. ==== Converting a Ruby Array to a Java Array ==== The <tt>to_java</tt> method constructs a Java array from a Ruby array: [1,2,3].to_java => [Ljava.lang.Object;@1a32ea4 By default, <tt>to_java</tt> constructs <tt>Object</tt> arrays. You can specify the parameter with an additional argument which can either be a symbol or a primitive class like <tt>Java::double</tt> ["a","b","c"].to_java(:string) => [Ljava.lang.String;@170984c [1, 2, 3.5].to_java Java::double => [D@9bc984 ==== Constructing Empty Java Arrays ==== Sometimes a Java library will need a fixed-length array, say for example a byte buffer for a stream to read into. For this, you can use the <tt>[]</tt> method of the primitive types in the Java module: bytes = Java::byte[1024].new # Equivalent to Java's bytes = new byte[1024]; === Ruby String to Java Bytes and back again === bytes = 'a string'.to_java_bytes => #<#<Class:01x9fcffd>:0x40e825 @java_object=[B@3d476c> string = String.from_java_bytes bytes => "a string" === Convert a Java InputStream to a ruby IO object === io = input_stream.to_io # works for InputStreams, OutputStreams, and NIO Channels === Gotchas === Note that currently you cannot call java methods from within a ruby class' constructor that inherits from a java class, without first calling super or it results in a stack overflow http://www.ruby-forum.com/topic/217475 == Referencing a <tt>java.lang.Class</tt> object == If you call a Java class from JRuby and need to pass a Java class as an argument, if you use this form: DoSomethingWithJavaClass(MyJavaClass.class) you'll get this error: TypeError: expected [java.lang.Class]; got: [org.jruby.RubyClass]; error: argument type mismatch Instead use the method <tt>java_class</tt>. DoSomethingWithJavaClass(MyJavaClass.java_class) == Integrating JRuby and Java Classes and Interfaces == === Classes === ==== Reopening Java Classes ==== In Ruby, classes are always open, which means that you can later add methods to existing classes. This also works with Java classes. This comes in handy when adding syntactic sugar like overloaded operators to Java classes, or other methods to make them behave more Ruby-like. Note that these additions will only be visible on the JRuby side. ==== Subclassing a Java class ==== You can subclass (i.e. extend) a Java class and then use the JRuby class whenever Java expects the superclass. ==== Gotchas ==== If you have a class name ambiguity between Java and Ruby, the class name will reference the Ruby construct within the Ruby code. For instance, if you import <tt>java.lang.Thread</tt> and then write <tt>JThread < Thread</tt>, <tt>JThread</tt> will in fact inherit the Ruby <tt>Thread</tt> object, not the Java <tt>Thread</tt>. The solution is to use the full Java Class name, such as: JThread < java.lang.Thread === Interfaces === Java interfaces are mapped to modules in JRuby. This means that you can also reopen the corresponding module and add further methods on the JRuby side. ==== Implementing Java Interfaces in JRuby ==== JRuby classes can now implement more than one Java interface. Since Java interfaces are mapped to modules in JRuby, you implement them not by subclassing, but by mixing them in. class SomeJRubyObject include java.lang.Runnable include java.lang.Comparable end ==== Closure conversion ==== JRuby sports a feature called ''closure conversion'', where a Ruby block or closure is converted to an appropriate Java interface. For example: button = javax.swing.JButton.new "Press me!" button.add_action_listener {|event| event.source.text = "You did it!"} In this example, the <tt>JButton</tt>'s <tt>addActionListener</tt> method takes one parameter, a <tt>java.awt.event.ActionListener</tt>. The block is converted to a <tt>Proc</tt> object, which is then decorated with a java interface proxy that invokes the block for any method called on the interface. This not only works for event listeners or <tt>Runnable</tt>, but basically for any interface. When calling a method that expects an interface, JRuby checks if a block is passed and automatically converts the block to an object implementing the interface. === Java classes can't inherit from a JRuby class === Hopefully this feature will be added in the planned re-write of the Java integration layer in a future release of JRuby. == Exception Handling == Native Java exceptions can be caught in Ruby code as expected: begin java.lang.Integer.parse_int("asdf") rescue java.lang.NumberFormatException => e puts "Failed to parse integer: #{e.message}" end Furthermore, Ruby code can throw Java exceptions: begin raise java.lang.IllegalArgumentException.new("Bad param") rescue java.lang.IllegalArgumentException => e puts "Illegal argument: #{e}" end This is useful if you happen to be implementing a Java interface in Ruby that requires a particular exception to be thrown on error. Note that this can also be written: begin raise Java::JavaLang::IllegalArgumentException.new("Bad param") rescue Java::JavaLang::IllegalArgumentException => e puts "Illegal argument: #{e}" end == Synchronization in JRuby == When interacting with Java APIs from JRuby, it is occasionally necessary to synchronize on an object for thread safety. In JRuby, a <tt>synchronize</tt> method is provided on every wrapped Java object to support this functionality. For example, the following Java code: synchronized(obj) { obj.wait(1000); } is implement like this in Ruby: obj.synchronized do obj.wait 1000 end The expression evaluates to the result of the block, e.g., obj.synchronized { 99 } # => 99 == Related Articles == * [[FAQs#Calling_Into_Java]] Useful other examples * [http://mikiobraun.blogspot.com/2008/11/java-integration-in-jruby.html Java Integration in JRuby] Short overview article on JRuby and Java integration. * [http://programmingbulls.com/ruby-array-hash Ruby/JRuby Changing Arrays to Hash] How to convert JRuby/Ruby arrays to Hash * [http://blogs.sun.com/sundararajan/entry/java_integration_javascript_groovy_and Java Integration: JavaScript, Groovy and JRuby] Side-by-side comparison of Java integration in JavaScript, Groovy and JRuby. * [http://jruby.codehaus.org/Java+Integration Java Integration] From the JRuby main page. * [http://jtestr.codehaus.org/ JtestR] A testing framework for Java based on JRuby. * [http://github.com/leandrosilva/sparrow Sparrow] A JMS client for messaging based on JRuby.
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close