Перейти к основному содержанию
Искать инструменты
Тема

Сохранено только на этом устройстве.

Русский

Java Compiler

v1.0.0 Сервер

Write, compile, and run Java online with real javac diagnostics, multi-file projects, stdin, and starter templates. No install, no sign-up — results in seconds.

Оцените первым Online Compiler
Использовать Java Compiler сейчас
  • Регистрация не требуется
  • Бесплатно в использовании

Добавлено Поддерживается Parsepad

Краткий обзор

  • Where does my code run?
  • Can I run programs that read input?
  • Does it support multiple files?
На этой странице
Java Compiler

Рабочая область в реальном времени

Запуск Готово
[--:--:--] INFO Консоль готова. Запустите инструмент, чтобы увидеть активность.
Готово
Используется управляемый помощник Parsepad

Спросите что угодно об Java Compiler

Вставьте входные данные выше и задайте вопрос или используйте быстрое действие.

ИИ-ответы об этом инструменте. Контекст рабочей области прикрепляется только если вы его включите.

Руководство

О Java Compiler

Write, compile, and run Java in your browser with a real JDK behind it. The Monaco editor gives you Java syntax highlighting, find-and-replace, and formatting; the file explorer lets you build small multi-class projects; and the standard-input panel feeds Scanner and BufferedReader so interactive programs work too. Pick a starter template or paste your own code and see the actual compiler output — including real javac diagnostics when something doesn't build.

Best Fit

  • Try a Java language feature or a quick algorithm without opening an IDE.
  • Reproduce a small bug across two or three classes and share the exact repro.
  • Run a console program that reads input, and read its output inline.

How to use the Java Compiler

  1. Start from an example (Hello World, FizzBuzz, Fibonacci, Bubble Sort, and more) or write your own.
  2. Add files in the explorer if your program spans more than one class.
  3. If your code reads input, open the Input panel and add one line per read.
  4. Press Run (or Ctrl+Enter) to compile and execute; read the output and diagnostics below.
  5. Copy the code, or download it — multi-file projects download as a zip.

What the Java Compiler helps with

  • Real javac compilation surfaces genuine build errors and warnings, not just red squiggles.
  • Multi-file projects with a file explorer, tabs, and search across files.
  • Standard-input support so interactive Scanner programs run as intended.
  • Quality-of-life editing: format, find and replace, word wrap, minimap toggle.

Examples

Hello World

Input

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

Output

Hello, World!

Reading input with stdin

Input

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String name = in.nextLine();
        System.out.printf("Hi %s, your name has %d letters.%n", name, name.length());
    }
}
Input panel:
Ada

Output

Hi Ada, your name has 3 letters.

Frequently Asked Questions

Where does my code run?

Your code is sent to the Parsepad backend, compiled with a real JDK, and executed in a sandbox; the output is returned to your browser. Unlike a purely client-side tool, running requires a network round-trip — that is what lets it report genuine compiler diagnostics.

Can I run programs that read input?

Yes. Open the Input panel in the status bar and enter one line for each read your program makes. The lines are fed to standard input in order when you run.

Does it support multiple files?

Yes. Use the file explorer to add classes across .java files. When you download a multi-file project it is packaged as a zip so the structure is preserved.

Which Java version is used?

A current stable JDK. Language features from recent LTS releases generally work; long-running operations and platform-specific APIs are limited by the execution sandbox.

Инструкции

Как пользоваться Java Compiler

  1. Add input

    Start from an example (Hello World, FizzBuzz, Fibonacci, Bubble Sort, and more) or write your own.

  2. Run tool

    Add files in the explorer if your program spans more than one class.

  3. Review output

    If your code reads input, open the Input panel and add one line per read.

  4. Continue workflow

    Press Run (or Ctrl+Enter) to compile and execute; read the output and diagnostics below.

  5. Wrap up

    Copy the code, or download it — multi-file projects download as a zip.

Вопросы

Частые вопросы о Java Compiler

Where does my code run?
Your code is sent to the Parsepad backend, compiled with a real JDK, and executed in a sandbox; the output is returned to your browser. Unlike a purely client-side tool, running requires a network round-trip — that is what lets it report genuine compiler diagnostics.
Can I run programs that read input?
Yes. Open the Input panel in the status bar and enter one line for each read your program makes. The lines are fed to standard input in order when you run.
Does it support multiple files?
Yes. Use the file explorer to add classes across .java files. When you download a multi-file project it is packaged as a zip so the structure is preserved.
Which Java version is used?
A current stable JDK. Language features from recent LTS releases generally work; long-running operations and platform-specific APIs are limited by the execution sandbox.