Reputation: 2877
I've created an application that simulates the Scala REPL on Windows. The idea is to use it in an app on Android. But I understand the Scala REPL or Interpreter actually compiles the code and then generates bytecode. According to this thread it's not possible to do it in Android because of the Dalvik bytecode(Android) vs Java bytecode (Scala) incompatibility. Is this true? Would appreciate it if anyone can point me to a working app/implementation as well if it exists.
PS: I've spent one day and one night trying to get this to work in an Android app. It has thrown a myriad of exceptions, restarted the emulator and crashed eclipse. Hence the question :(
Upvotes: 3
Views: 1496
Reputation: 42047
"Is this true?" Yes. Unless, of course, you translate the byte code generated by Scala to dalvik bytecode. But it's probably easier to not run the REPL on Android.
Upvotes: 2