0

How can we use applets of java in sololearn compiler

Need answer faster

21st Nov 2018, 10:21 AM
Naveen Devadiga
Naveen Devadiga - avatar
5 Antworten
+ 3
TL;DR: Sorry, no applets. To accomplish this you would need at least: 1. output persistence 2. cross-code integration 3. a Java Virtual Machine 1. and 2. are a no-go, and 3 doesn't really work with: a. Browsers outside of the app: The Dalvik VM (also, ART) is not the same as a JVM :( b. Embedded webview: Android's webview does not support plugins / installable components If you have a Raspberry Pi (or are rooted) you could try OpenJDK for ARM (this would all be off-app). ~ SECURITY note: At least as early as 2016 applets were deprecated because of rampant security problems and removal by all major browser vendors.
21st Nov 2018, 11:40 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
To be clear, these are hard stops: ~ No output persistence ... Can't deliver packaged files when you can't really generate it in the first place / or save for later retrieval by some webserver. ~ Cross-code integration ... You need Java to make a package, but a web server integrated with Java and a web browser to consume them. None of that applies here. ~ A JVM ... If you could satisfy the first two...applets/web apps require a JRE to be installed on the client. Mobiles don't do that / the architecture is too different. ~ It turns out I've seen Java WARs before (web app files) but still, the only thing that comes to mind is to follow some tutorials at home: https://www.baeldung.com/java-web-start https://www.mkyong.com/java/java-web-start-jnlp-tutorial-unofficial-guide/ https://en.m.wikipedia.org/wiki/WAR_(file_format) ~ Possibly use a free Java servlet / webapp host, then iframe that (on a *PC* with Java) to simulate SoloLearn hosting: https://stackoverflow.com/questions/20734616/free-java-servlet-hosting
24th Nov 2018, 4:40 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
It looks like Java Web Start is the intended replacement: https://en.m.wikipedia.org/wiki/Java_Web_Start HTML5 also has some kind of web app framework, but these topics are outside of my research area.
24th Nov 2018, 3:53 AM
Kirk Schafer
Kirk Schafer - avatar
0
Any alternative
22nd Nov 2018, 8:06 AM
Naveen Devadiga
Naveen Devadiga - avatar
0
How can we use that in sololearn
24th Nov 2018, 3:56 AM
Naveen Devadiga
Naveen Devadiga - avatar