Creating Ruboto app with runtime included (noob question)

52 views
Skip to first unread message

Martin Ceronio

unread,
Jul 30, 2015, 6:02:51 AM7/30/15
to Ruboto (JRuby on Android)
I am just getting started with Ruboto. First let me say thanks to whoever has made this possible and for all the hard work that has gone into this project.

My question is as follows:

I am following the tutorial on how to create a Ruboto app that does not require the Ruboto runtime from the wiki. (https://github.com/ruboto/ruboto/wiki/Tutorial%3A-Running-Ruboto-without-having-to-install-the-Ruboto-Core)

The problem I have is that, even after following the steps there, when I start up the application, I still have the screen that comes up prompting me to download and install the Ruboto runtime.

What I see in logcat when I start up the application is as follows:

D/DexDex  ( 1831): APK Date : 1438247884000 ,dexDir date : 1438247943000
D/DexDex  ( 1831): shouldDexOpt(/data/app/org.ruboto.example.tutorial_touch-1.apk,/data/data/org.ruboto.example.tutorial_touch/app_dexdex,[]) => false on Thread
[Thread-86,5,main]
D/DexDex  ( 1831): appendOdexesToClassPath completed : dalvik.system.PathClassLoader[/data/app/org.ruboto.example.tutorial_touch-1.apk]
D/DexDex  ( 1831): theAppended : []
D/DexDex  ( 1831): validateClassPath - dexDir : /data/data/org.ruboto.example.tutorial_touch/app_dexdex
I/System.out( 1831): JRuby not found in local APK:
W/System.err( 1831): java.lang.ClassNotFoundException: org.jruby.embed.ScriptingContainer
W/System.err( 1831):    at java.lang.Class.classForName(Native Method)
W/System.err( 1831):    at java.lang.Class.forName(Class.java:217)
W/System.err( 1831):    at java.lang.Class.forName(Class.java:172)
W/System.err( 1831):    at org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:180)
W/System.err( 1831):    at org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:123)
W/System.err( 1831):    at org.ruboto.SplashActivity$1.run(SplashActivity.java:78)
W/System.err( 1831):    at java.lang.Thread.run(Thread.java:856)
W/System.err( 1831): Caused by: java.lang.NoClassDefFoundError: org/jruby/embed/ScriptingContainer
W/System.err( 1831):    ... 7 more
W/System.err( 1831): Caused by: java.lang.ClassNotFoundException: org.jruby.embed.ScriptingContainer
W/System.err( 1831):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
W/System.err( 1831):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
W/System.err( 1831):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
W/System.err( 1831):    ... 7 more
I/System.out( 1831): JRuby not found in platform APK:
W/System.err( 1831): android.content.pm.PackageManager$NameNotFoundException: org.ruboto.core
W/System.err( 1831):    at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:80)
W/System.err( 1831):    at org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:189)
W/System.err( 1831):    at org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:123)
W/System.err( 1831):    at org.ruboto.SplashActivity$1.run(SplashActivity.java:78)
W/System.err( 1831):    at java.lang.Thread.run(Thread.java:856)
D/RUBOTO  ( 1831): SplashActivity onResume: Checking JRuby - IN UI thread
I/ActivityManager( 1020): Displayed org.ruboto.example.tutorial_touch/org.ruboto.SplashActivity: +335ms (total +436ms)
D/dalvikvm( 1831): GC_FOR_ALLOC freed 115K, 3% free 8773K/9031K, paused 17ms, total 19ms
D/RUBOTO  ( 1831): SplashActivity Hide progress
Reply all
Reply to author
Forward
0 new messages