Run Java

Java ソースコードを直接コンパイルして実行します。'public static void main' メソッドを持つクラスを貼り付けると、javac でコンパイルされ java で実行され、stdout が取得されます。(.jar を実行する場合は Run CMD で 'java -jar file.jar' を使用してください。)

プログラム・プロセスRunJava

概要

Java ソースコードを直接コンパイルして実行します。'public static void main' メソッドを持つクラスを貼り付けると、javac でコンパイルされ java で実行され、stdout が取得されます。(.jar を実行する場合は Run CMD で 'java -jar file.jar' を使用してください。)

Compile and run Java source code directly. Paste a class with a 'public static void main' method; it is compiled with javac and run with java, and its stdout is captured. (To run a .jar instead, use Run CMD: 'java -jar file.jar'.)

パラメータ

パラメータ必須既定値説明
Java codemultiline
必須Full Java source with a main() method. Variables are supported: {{{name}}} markers are replaced with their value before compiling.
: public class Main { public static void main(String[] args) { System.out.println("Hello {{{userName}}}"); } }
変数に対応
Extra classpathstring
任意Optional libraries/JARs to compile and run against (passed via -cp).
: C:/apps/lib/*
変数に対応
Program argumentsstring
任意
変数に対応
java executablestring
任意javaPath to 'java'; defaults to 'java' on PATH.
変数に対応
javac executablestring
任意javacPath to 'javac' (the JDK compiler); defaults to 'javac' on PATH.
変数に対応
Store stdout invariable
任意
: output

その他のプログラム・プロセスコマンド

面倒な作業を自動化しませんか?

今すぐ10日間の無料トライアルを開始。カードも契約も不要です。