Created
February 24, 2009 09:01
-
-
Save headius/69478 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat test.rb | |
class Foo | |
def bar | |
puts 'hello, android' | |
end | |
end | |
Foo.new.bar | |
# dalvikvm -classpath ruboto.jar org.jruby.Main -X-C test.rb | |
hello, android | |
# dalvikvm -classpath ruboto.jar org.jruby.Main -X-C -e "require 'java'; puts java.lang.System.properties" | |
{android.vm.dexfile=true, java.runtime.name=Android Runtime, java.vm.version=1.0.0, java.vm.vendor=The Android Project, java.vendor.url=http://www.android.com/, path.separator=:, java.vm.name=Dalvik, java.vm.vendor.url=http://www.android.com/, java.vm.specification.name=Dalvik Virtual Machine Specification, user.dir=/data, java.runtime.version=0.9, os.arch=OS_ARCH, java.io.tmpdir=/tmp, line.separator= | |
, java.vm.specification.vendor=The Android Project, os.name=Linux, java.library.path=/system/lib, java.specification.name=Dalvik Core Library, java.class.version=46.0, os.version=2.6.25-00350-g40fff9a, user.home=, file.encoding=UTF-8, java.specification.version=0.9, user.name=, java.class.path=ruboto.jar, java.vm.specification.version=0.9, java.home=/system, user.language=en, java.specification.vendor=The Android Project, java.version=0, java.ext.dirs=, java.boot.class.path=/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar, java.vendor=The Android Project, file.separator=/, java.compiler=, user.region=US} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment