-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer somewhat broken/JRuby doesn't appear to work with current SL4A. Project inactive? #1
Comments
Yes, the JRuby SL4A interpreter has not been updated since I first created it to move it out of the SL4A project. At the time, they were hoping to move most of the interpreters outside of the SL4A project. I think I might have been the only one who fell for it :) A can't imagine that too much has changed. It could probably be brought back up to date with a few hours of work that would also update the JRuby version. I'll see if I can find some time to do it in the next few weeks (unless someone else wants to take a shot at it). We could use someone who wants to take this on over the long term. Interested? I'm not sure I understand the last part of your question. Are you referring to the differences between Ruboto and SL4A? Or, are you talking about differences between JRuby/SL4A and other languages on SL4A? |
Kind of between things at the moment (almost), so I've been able to spend (read: waste) some time today trying to get this to work. A few results/ideas to report.
Although they do still officially support JRE 6, it seems that there are still problems with running "dx" (Dex) on both their binary and source releases (even if built with JRE 6, and after removing the JRE-7-only "com.headius.invokebinder" classes). In the case of the source releases I believe that this may be because of the (large number of) binary dependencies packaged along with the source, which were presumably compiled against JRE 7. If this is the case, a "solution" may be to get source distributions for all of the dependencies and also recompile them using JRE 6. The problem is that the "dx" compile step takes upwards of 40 minutes (on my admittedly outdated machine), with no sign of nearing completion. I have encountered one or two sources stating that dx will take huge amounts of time if there are any classes compiled using JRE 7, while it takes only a minute or so if they are all compiled using JRE 6. This seems to occur even if the "source" and "target" code versions are both set to 6. The only solution seems to be to actually get JDK 6 from Oracle, and recompile (which is what I have resorted to). However as I said, the binary dependency jars still seem to cause problems. Here is one source that talks about the JDK 7 dex problem: More information on JRuby's use of Java 7 features:
Incidentally, there does seem to be someone within that project claiming to be working on JRuby support - see http://code.google.com/p/android-scripting/people/list - maybe it would be best to ask if he has any thoughts about this first.
|
I've tried this and the installer keeps failing halfway through the download of the extras file. It did succeed one time, but then, when I tried to run the Hello World script, SL4A complained that org.jruby.Main (I think) was missing. I would assume this might be because it hasn't kept up with SL4A interface changes, is this correct?
I notice that there have been no updates to this in 2 years (in fact, pretty much since it was first uploaded). Are there no plans to continue development on it? Are there (or does anyone think there are) reasons for preferring to stay with the approach of having a completely separate API interface from SL4A?
The text was updated successfully, but these errors were encountered: