A good choice would be Koding.

It offers a free VM with root access, 4Gb disk, 2Gb ram and a burstable CPU.

You can basically install anything on it and it will run because behind all the UI it's a virtual Linux machine.

You can code your Java apps and run them afterwards directly in the browser.

There are a lot of Java developers and even groups that offer support. It offers collaboration features and you can code with your developer friends.

Answer from stefanbc on Stack Overflow
🌐
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.
🌐
Online Java
online-java.com
Online Java - IDE, Code Editor, Compiler
Write, compile, and run Java code online with our fast and reliable online compiler and IDE.
Discussions

Best online IDE?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
10
4
February 16, 2022
Use Vim as a Java IDE
🌐 r/java
30
0
February 2, 2016
Is therer a good Java IDE to use on Android?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/javahelp
18
7
November 11, 2021
SpaceVim - Use Vim As A Java Ide

Using vim to write Java seems like a serious cry for help.

More on reddit.com
🌐 r/programming
351
615
April 13, 2014
🌐
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"); } }
🌐
Reddit
reddit.com β€Ί r/learnjava β€Ί best online ide?
r/learnjava on Reddit: Best online IDE?
February 16, 2022 -

I'm looking for an online IDE to practice at work where I don't have one on my computer.

I've tried https://www.online-ide.com/ but does anyone have anything better, particularly when it comes to autofill?

🌐
BlueJ
bluej.org
BlueJ
A free Java Development Environment designed for beginners, used by millions worldwide. Find out more... "One of my favourite IDEs out there is BlueJ" β€” James Gosling, creator of Java.
Find elsewhere
🌐
JetBrains
jetbrains.com β€Ί idea
The Leading IDE for Professional Java and Kotlin Development
June 1, 2021 - IntelliJ IDEA is the JetBrains IDE for pro development in Java and Kotlin. Built for your comfort, it unlocks productivity, ensures quality code, supports cutting-edge tech, and protects your privacy.
🌐
OnlineGDB
onlinegdb.com β€Ί online_java_compiler
Online Java Compiler - online editor
OnlineGDB is online IDE with java compiler. Quick and easy way to run java program online.
🌐
Visual Studio Code
code.visualstudio.com β€Ί docs β€Ί languages β€Ί java
Java in Visual Studio Code
November 3, 2021 - In contrast to IDEs such as IntelliJ IDEA, NetBeans, or Eclipse, the concept of a "Java project" is provided entirely by extensions, and is not a core concept in the base VS Code.
🌐
Baeldung
baeldung.com β€Ί home β€Ί cloud β€Ί online java compilers
Online Java Compilers | Baeldung
May 19, 2025 - Anyone who has the URL can code in a permanent live session. We can see the changes that others make as well as be able to make our own. OnlineGDB is a compiler and debugger for many coding languages including Java.
🌐
MyCompiler
mycompiler.io β€Ί online-java-compiler
Online Java Compiler - myCompiler
Online Java Compiler - Edit, Compile and Run your Java code with myCompiler IDE. Simple and easy to use IDE with built in support for JAVAC for compiling Java programs.
🌐
Apache NetBeans
netbeans.apache.org β€Ί front β€Ί main β€Ί index.html
Welcome to Apache NetBeans
Apache NetBeans provides editors, wizards, and templates to help you create applications in Java, PHP and many other languages.
🌐
Oracle Java
dev.java β€Ί playground
The Java Playground - Dev.java
var feature = Runtime.version().feature(); IO.println("πŸ‘‹ Hello, Java " + feature); Β· Copyright Β© 2025 Oracle and/or its affiliates. All rights reserved. Terms of Use | Privacy | Trademarks
🌐
CodeChef
codechef.com β€Ί ide
Online Compiler & IDE for Python, C++, C, Java, Rust - CodeChef
Compile & run your code with the CodeChef online IDE. Our online compiler supports multiple programming languages like Python, C++, C, JavaScript, Rust, Go, Kotlin, and many more.
🌐
Tabnine
tabnine.com β€Ί home β€Ί top 10 online java compilers
Top 10 online Java compilers - Tabnine
September 12, 2024 - Ideone is a famous online compiler and debugging tool that allows developers to compile and run code in more than 40 programming languages. Syntax highlighting, source code download and the possibility to make code public or private (accessible ...
🌐
Remote Interview
remoteinterview.io β€Ί online-java-compiler
Online Java Compiler, IDE & Online Java Editor - Codepad – Remoteinterview.io
Online Java Compiler, IDE and Online Java Editor to conduct real time interviews, compile and run java online for free without making any installation at Codepad – Remoteinterview.io
🌐
GitHub
github.com β€Ί martin-pabst β€Ί Online-IDE
martin-pabst/Online-IDE
Online-IDE is a java-like programming language with IDE for computer-science-education that runs inside any browser - martin-pabst/Online-IDE
Starred by 48 users
Forked by 19 users
Languages Β  JavaScript 95.7% | TypeScript 3.6%
🌐
Codeanywhere
codeanywhere.com β€Ί languages β€Ί java
Java Online IDE, Compiler, Interpreter & Code Editor Β· AI Cloud IDE Β· Codeanywhere
You can code, learn, build, run, deploy and collaborate on your Java projects instantly from our online browser based Cloud IDE.
🌐
Eclipse IDE
eclipseide.org
Eclipse IDE | The Eclipse Foundation
Supports Java 24 and provides the necessary tooling for development.
🌐
CodePen
codepen.io
CodePen: Online Code Editor and Front End Web Developer Community
Build, share, and learn JavaScript, CSS, and HTML with our online code editor.