Skip to content
← Back to Community
Java GUI and Main.java
Profile icon
VuDo

Can we use java GUI on repl.it? If we can, how?
How do we delete/rename the Main.java file? I don't need it and repl.it is looking for the main class from Main.java when running the program.

Voters
Profile icon
Annkar
Profile icon
VuDo
Comments
hotnewtop
Profile icon
ash15khng

GUI is currently not supported on repl.it.
The main.java file cannot be renamed because repl.it uses that as an entry point for your code to run.

Profile icon
VuDo

@ash15khng Thanks.

Profile icon
rdeardorff

@ash15khng actually this is incorrect. If you put your GUI code inside the Main.java it will work if you keep the class name as Main. At least it has worked for me. The problem is trying to write multiple programs does not work...only Main does.

this is a limiting issue that does not allow me to adopt this editor.

Profile icon
ash15khng

@rdeardorff Ok this comment is now incorrect because 11 months ago when I posted this comment GUI was not supported yet. Currently GUI can be used on repl.it.
About writing multiple programmes, you can try pasting your code into multiple repls.