"In the beginning, there was
javac. Andjavacsaid: let there be.classfiles. And there were.classfiles. And the JVM looked upon them, and saw that they were good." โ The Book of Compilation, Chapter 1
Jyvra is a browser-based online Java compiler and execution arena โ a full-stack ritual chamber where mortals write Java, and the server compiles and runs it in real time. Monaco Editor on the frontend. Flask on the backend. The JVM in the shadows, waiting.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โโโ โโโโโโ โโโ โโโ โโโโโโ โโโโโโโ โโโโโโโโโโโโ โโโ โโโโโโ โ
โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โ
โ โโโโโโ โโโ โโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโ โโโ โ
โ โโโโโโ โโโ โโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโ โโโโโโโโ โโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[BOOT] Jyvra v1.0 โ Summoning Protocol Initiated
[ ] Detecting host OS .................... โ Linux
[ ] Locating javac binary ................ โ /usr/bin/javac
[ ] Verifying JVM heartbeat .............. โ OpenJDK 17.0.2
[ ] Raising Flask server from the void ... โ Port 5000
[ ] Mounting Monaco Editor grimoire ...... โ React 18.3
[ ] Binding frontend to backend .......... โ Vite proxy locked
[ ] Warming the classloader .............. โ Ready
[SYSTEM] The Arena is open.
[SYSTEM] May your semicolons be plentiful, and your NullPointers few.
>>> Listening on http://localhost:5000
The ritual has two paths. Choose your summoning method.
๐ฎ Path I โ The Automated Rite (Recommended)
On Linux / macOS:
chmod +x start.sh
./start.shOn Windows:
start.bat
The script will install all dependencies, build the frontend, and raise the server automatically. Open http://localhost:5000 when the incantation completes.
๐ Path II โ The Manual Ritual (For Those Who Seek Control)
| Artifact | Minimum | Recommended |
|---|---|---|
| JDK | Any | OpenJDK 17+ |
| Node.js | 16+ | 18+ |
| Python | 3.7+ | 3.13+ |
| npm | Bundled with Node | Latest |
npm install
pip install -r requirements.txtnpm run buildpython server.pyYou should witness:
Java Compiler Server - Detected OS: Linux
โ Java compiler found and ready
Starting unified server on http://localhost:5000
Serving React frontend + Java Compiler API
Open http://localhost:5000 in your browser.
๐ณ Path III โ The Docker Containment (For the Disciplined)
docker-compose up --buildOne command. One container. One arena. Port 5000. Done.
โ๏ธ Development Mode (Live Reload)
If you wish to modify the arena while it runs:
# Terminal 1 โ The Frontend Watcher
npm run dev
# Terminal 2 โ The Backend Daemon
python server.pyThe frontend will hot-reload. The backend will persist. Chaos under control.
| Feature | Description |
|---|---|
| Monaco Editor | The same editor that powers VS Code โ syntax highlighting, autocomplete, the works |
| Real-Time Compilation | Write Java โ hit Run โ see output. No pages to refresh. No files to save. |
| Server-Side Execution | Your code compiles and runs on the actual JVM. Not an emulator. Not a sandbox. The real thing. |
| Cross-Platform | Windows, Linux, macOS โ the arena doesn't discriminate |
| Split-Pane Layout | Resizable editor and output panels. Because one screen is all you need. |
| 10s Execution Timeout | Infinite loops are detected and terminated. The arena has rules. |
| Docker Support | One docker-compose up to rule them all |
| Client-side Java execution | via WebAssembly when the server is unreachable |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ THE MORTAL (You) โ
โ Writes Java in browser โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MONACO EDITOR (React) โ
โ TypeScript ยท Tailwind ยท Vite โ
โ Syntax highlighting, etc. โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ POST /api/compile
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FLASK SERVER (Python) โ
โ Receives code via REST API โ
โ Writes temp .java file โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ javac + java
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ JVM (The Beast) โ
โ Compiles โ Executes โ Returns โ
โ stdout / stderr / exit code โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OUTPUT PANEL โ
โ Real-time results in browser โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
JavaRena/
โโโ src/ # React + TypeScript source (the frontend grimoire)
โ โโโ components/ # UI components (shadcn/ui + Radix)
โ โโโ pages/ # Application pages
โ โโโ hooks/ # Custom React hooks
โ โโโ lib/ # Utility functions
โ โโโ App.tsx # The root incantation
โโโ server.py # Flask backend (the summoner)
โโโ dist/ # Built frontend (generated by npm run build)
โโโ public/ # Static assets
โโโ Dockerfile # Docker containment spell
โโโ docker-compose.yml # Orchestration ritual
โโโ start.bat # Windows startup script
โโโ start.sh # Linux/Mac startup script
โโโ requirements.txt # Python dependencies
โโโ package.json # Node dependencies
โโโ vite.config.ts # Vite configuration
โโโ tailwind.config.ts # Tailwind configuration
โโโ tsconfig.json # TypeScript configuration
GET /api/health โ Check the Server Pulse
curl http://localhost:5000/api/healthPOST /api/compile โ Submit Code to the Arena
curl -X POST http://localhost:5000/api/compile \
-H "Content-Type: application/json" \
-d '{"code":"public class Main { public static void main(String[] args) { System.out.println(\"Hello from the Arena!\"); } }"}'GET /api/info โ Server Intelligence Report
curl http://localhost:5000/api/infoPaste this into the editor and hit Run. If the output appears, the JVM has accepted your offering.
public class Main {
public static void main(String[] args) {
System.out.println("โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ");
System.out.println("โ The Arena acknowledges you. โ");
System.out.println("โ Your code compiled. โ");
System.out.println("โ The JVM has spoken. โ");
System.out.println("โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ");
String[] truths = {
"Semicolons are not optional.",
"Everything is an object. Except primitives.",
"Checked exceptions build character.",
"The garbage collector giveth, and it taketh away."
};
System.out.println("\n--- Truths of the JVM ---");
for (int i = 0; i < truths.length; i++) {
System.out.println((i + 1) + ". " + truths[i]);
}
System.out.println("\nTotal truths revealed: " + truths.length);
}
}- Your class must be named
Mainโ The arena expectspublic class Mainwith apublic static void main(String[] args)entry point. - 10-second execution limit โ Infinite loops will be slain. The arena does not wait.
- Standard I/O only โ
System.outandSystem.errare your voice. GUI and file I/O are beyond the arena's walls. - One file, one class โ This is a compiler, not an IDE. Keep it focused.
- No external dependencies โ The JVM standard library is your toolkit. No Maven. No Gradle. Just raw Java.
- Multi-file support โ Summon multiple classes into the arena
- Stdin support โ Let users feed input to running programs
- Syntax error highlighting โ Mark the lines where the JVM weeps
- Code sharing โ Shareable links for arena submissions
- Multiple languages โ Python, C++, and other mortals may enter
- User accounts โ Save your rituals for future sessions
- Dark/light theme toggle โ Choose your allegiance
| You Are | Verdict |
|---|---|
| A student learning Java | Enter. This was built for you. |
| A developer testing a quick snippet | Enter. No IDE boot time. No project setup. |
| Someone who wants to run Java in a browser | Enter. That's literally what this does. |
| A recruiter asking candidates to live-code | Enter. Share the link. Watch them type. |
| Someone who thinks JavaScript is Java | Turn back. This is not your realm. |
"Java compiler not found"
Install the JDK (not just JRE). Then restart your terminal.
# Ubuntu/Debian
sudo apt-get install openjdk-17-jdk
# macOS
brew install openjdk
# Windows โ download from https://openjdk.org/install/"Frontend not built yet"
npm run build
python server.pyPort 5000 already in use
Edit server.py and change the port number:
app.run(debug=False, host="0.0.0.0", port=5001) # Changed from 5000Python module not found
pip install -r requirements.txtBuilt with โ and questionable life choices. Licensed under MIT.