A simplified version of JavaFiddle that allows you to write and run Java code in your browser using CheerpJ.
- Clean Interface: Simple, focused UI with just the essentials
- Code Editor: Powered by CodeMirror 6 with Java syntax highlighting
- Instant Execution: Run Java code directly in the browser
- Console Output: View program output and compilation errors
- Node.js (for development)
- Modern web browser with WebAssembly support
- Clone or download this project
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser to
http://localhost:3000
- Write your Java code in the editor (default is a "Hello World" example)
- Click the "Run Code" button or press
Ctrl/Cmd + Enter - View the output in the Console and Result panels
This application uses:
- CheerpJ: A WebAssembly-based Java runtime that runs Java code in the browser
- CodeMirror 6: Modern code editor with Java syntax highlighting
- Vite: Fast build tool for development and production
The Java code is compiled and executed entirely in the browser using CheerpJ's virtual JVM.
This simplified version removes:
- Svelte framework dependency
- File management system
- Sharing functionality
- Favorites system
- Settings panel
- Complex routing
- Local storage persistence
Apache-2.0 (same as original JavaFiddle)