To view parent comment, click here.
To read all comments associated with this story, please click here.
There are three options. Not good options, but options if you want to devote a lot of time.
The flash compiler uses llvm. llvm isn't a compiler, it's a low level virtual machine which can be compiled (or JITed) to a bunch of real architectures (including arm, x86, ppc, alpha, .net, etc). llvm and java vm are both documented (and open source), so in theory a jar file could be converted to llvm and compiled to arm (or another target). Of course it's not that simple since jvm is stack-based and llvm is register based and much lower level than the jvm, but it could happen.
GCC now includes a java compiled which can (optionally) compile to native code. There's also an llvm-gcc fork which compiles to llvm code. How about marrying the two up? Last I checked (which was a few years ago), the gcc jcc used its own backend and I don't think llvm-gcc supports java but if you switched the jcc backend to use the standard backend it might work.
The third option is using get to compile your java to a javascript web app.




Member since:
2005-11-10
Adobe are making Flash Pro CS5 compile Flash into a native (but essentially ugly) application to be force fed through the approval process. Could Java do the same?
Apple’s gateway policy is a different kettle of fish to discuss. A kettle that doesn’t exist in the web browser (if you excuse no-plugins).