dex is an executable that comes with the SDK and converts files from .class (Java bytecode) to .dex (Dalvik bytecode)
For a while there was a bug in the Dalvik VM that wouldn't let you run some Scala methods but I made a patch to fix that problem. I think it's in all releases after Android 1.6.