there is also http://ideone.com/ (supports many languages)

Answer from lumen on Stack Overflow
๐ŸŒ
Programiz
programiz.com โ€บ java-programming โ€บ online-compiler
Online Java Compiler - Programiz
// Online Java Compiler // Use this editor to write, compile and run your Java code online class Main { public static void main(String[] args) { System.out.println("Try programiz.pro"); } } Output ยท
๐ŸŒ
OneCompiler
onecompiler.com โ€บ java
Java Online Compiler
Write, Run & Share Java code online using OneCompiler's Java online compiler for free. It's one of the robust, feature-rich online compilers for Java language, running on Java 25. Getting started with the OneCompiler's Java editor is easy and fast.
๐ŸŒ
Online Java
online-java.com
Online Java - IDE, Code Editor, Compiler
Build and Run your java code instantly. Online-Java is a quick and easy tool that helps you to build, compile, test your programs online.
๐ŸŒ
ReqBin
reqbin.com โ€บ code โ€บ java
Online Java Code Runner
No browser plugins or additional desktop software are needed for using the Online Java compiler and interpreter. It's free. ... Run Java code online using ReqBin online interpreter.
๐ŸŒ
JDoodle
jdoodle.com โ€บ online-java-compiler
Online Compiler and Editor/IDE for Java, C, C++, PHP, Python, Ruby, Perl - Code and Run Online
JDoodle is an Online Compiler, Editor, IDE for Java, C, C++, PHP, Perl, Python, Ruby and many more. You can run your programs on the fly online, and you can save and share them with others. Quick and Easy way to compile and run programs online.
๐ŸŒ
W3Schools
w3schools.com โ€บ java โ€บ java_compiler.asp
Java Online Compiler (Editor / Interpreter)
Try it Yourself ยป ยท Click on the "Try it Yourself" button to see how it works. If you want to create your own Java applications, W3Schools Spaces gives you an easy place to write, run, manage, and publish code online.
๐ŸŒ
CodeUtility
java.codeutility.io
Run Java Code Online - Online Java Compiler
Use our free Java compiler to write, compile, and execute Java programs online. No installation required - start coding Java now.
Find elsewhere
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ compilers โ€บ online-java-compiler.htm
Online Java Compiler & IDE - Write, Run & Debug Java Code
Free online Java Compiler and IDE. Write, compile, run and debug Java code online. No installation required. Supports debugging, code sharing, and multiple examples.
๐ŸŒ
JavaTechOnline
javatechonline.com โ€บ home โ€บ online java compiler and runner
Online Java Compiler And Runner - Run Java Code Online
June 16, 2025 - Compile & run Java code online with our free Online Java Compiler (Supports Java 21). No installation needed. Write, execute, and debug Java programs instantly in your browser!
๐ŸŒ
Codiva
codiva.io
Superfast Online Java Compiler, Editer and IDE - Codiva.io - Compile and Run Java Online
Compile and run C, C++, Java programs online with Codiva.io. Used by CS teachers in the US, India, Phillipines, ... Compiles as you type with auto complete suggestions. It is fast, even on 2G mobile. Try now!
๐ŸŒ
Compiliz
compiliz.com โ€บ online-java-compiler
Free Online Java Compiler - Run Java Code Online OpenJDK 17 | Compiliz | Compiliz - Free Online Compiler
Free online Java compiler with OpenJDK 17. Write, compile, and run Java programs instantly in your browser. Perfect for object-oriented programming, enterprise applications, Android development, Spring Boot projects. No setup required!
๐ŸŒ
MyCompiler
mycompiler.io โ€บ online-java-compiler
Online Java Compiler - myCompiler
Run your Java code ยท Using myCompiler, you can run your code instantly from any device. Just visit our website, select a language, type in your code and hit "Run!" Write your code without having to spend hours figuring out how to set up a ...
๐ŸŒ
Domsignal
domsignal.com โ€บ home โ€บ java online compiler | write and test java code online with ease
Java Online Compiler | Write and Test Java Code Online with Ease
Run Java code online without installing any software on your computer. Domsignal Java compiler is a free tool and can be accessed from anywhere.
๐ŸŒ
Replit
replit.com โ€บ languages โ€บ java
Java Online Compiler & Interpreter - Replit
Code, collaborate, compile, run, share, and deploy Java and more online from your browser.Sign up to code in Java
๐ŸŒ
OnlineGDB
onlinegdb.com โ€บ online_java_compiler
Online Java Compiler - online editor
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it.
๐ŸŒ
Ideone
ideone.com
Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 70+ other compilers and interpreters - Ideone.com
Ideone is something more than a pastebin; it's an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.
๐ŸŒ
OneCompiler
onecompiler.com
OneCompiler - Write, run and share code online | Free online compiler with 100+ languages and databases
One Compiler helps over 12.8 million users worldwide write code online. PopularProgrammingWebDatabases ยท HTML ยท Python ยท JavaScript ยท Java ยท MySQL ยท C ยท C++ PHP ยท C# Assembly ยท Lua ยท PL/SQL ยท NodeJS ยท MongoDB ยท Groovy ยท React ยท PostgreSQL ยท Ruby ยท Embed our Editor & Challenges as an iFrame into your website to get the code execution capabilities in minutes. Build more complex use-cases by calling our APIs from your backend applications to run code, read reports etc., Reach out to us to build custom workflows that are not covered by APIs, to solve your use-cases ยท
๐ŸŒ
OnlineGDB
onlinegdb.com โ€บ online_java_debugger
Online Java Debugger - online editor
/****************************************************************************** Online Java Debugger. Code, Run and Debug Java program online. Write your code in this editor and press "Debug" button to debug program.