+ 1

Java code no compiler! Why? Help me!

Why is not my code compiled here? Although in Idea I write, everything works? why? https://code.sololearn.com/c838UPbY4wwX/?ref=app https://code.sololearn.com/c838UPbY4wwX/?ref=app

18th Jun 2017, 9:03 PM
ne3io
ne3io - avatar
1 Réponse
+ 7
The SoloLearn compiler only supports console/commandline programs. jFrame "works" (your code is compiling), but since your code executes on a server, any windows cannot be interacted with. All the server sends back is the console results, and there are none (hence "No output"). If you want to use jFrame and other GUI stuff, you'll have to use a computer with an offline compiler.
18th Jun 2017, 9:40 PM
Tamra
Tamra - avatar