+ 2

Sololearn,urgently!

I'm not talking about HTML now. I really respect you and your mobile applications, but please make the interpreter on the DEVICE, not on the server!This is very important, I understand that I will have to block some methods like InputStream and OutputStream because of possible virus programs.Thanks for reading from all the community.UP!

18th Nov 2017, 1:30 PM
TicTac
TicTac - avatar
6 Answers
+ 6
Android's Java (for apps) and the Java taught here (with javac, a Windows binary) are different beasts. Android is based on Dalvik (or recently ART) and language features are different, e.g., the Unsafe class is missing. While Java runs on Linux... https://www.java.com/en/download/help/sysreq.xml ...Android's Linux-y, right? Java has had some manual license requirements before retrieving libraries (user action required, then big library), you may have to install Linux on Android (got root?) or compile OpenJDK / IcedTea... but hmmm. And not all mobiles run the same Android. To be fair, some people try AIDE but it's still not straight Java. I've tried to list this so you can verify without feeling like I'm trying to give an intimidating answer; and drop in quietly that letting your code run at SoloLearn (until you grow into your own installation) probably helps them... and it's on a platform supported by Oracle.
18th Nov 2017, 2:48 PM
Kirk Schafer
Kirk Schafer - avatar
+ 6
Devices do not run the standard Java Virtual Machine; on Android it's the Dalvik runtime and/or the Android RunTime (ART).
18th Nov 2017, 3:22 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
I can't accept this, Yeva and team would've worked in Google ir something if they're that good in coding. Please use a different program to run you code 😒
18th Nov 2017, 1:32 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
I'm not saying that the program should be compiled into apk.What is the dalvik here? I'm talking about the standard java.
18th Nov 2017, 2:59 PM
TicTac
TicTac - avatar
+ 1
virus encoder
18th Nov 2017, 5:35 PM
TicTac
TicTac - avatar