Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.52 KB

File metadata and controls

39 lines (30 loc) · 1.52 KB

Java (Language.Java)

Java has been implemented by using the javac.exe from commandline (with Process.Start()) - Can be improved by using an API (e.g: create JNI Interface which will call a Java compiler in Java (JavaCompiler))

Implementation / Compiler

About

You can write small snippets, but be aware: Fiddle will automatically put them into a main method if none found.

So:

System.out.println("Hello world!");

Will be compiled as:

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

Completeness

  • Syntax highlighting
  • Compilation
  • Execution
  • Console ouput
  • Return values
  • Diagnostics (Line number and red underline does not work)
  • Errors (Line number and red underline does not work)

Example code | Projects

Globals

You cannot use any Globals in your code so far.

Properties

  • string jdkPath: Path to Java Development Kit. If empty, Fiddle will automatically search the JDK in Program files or Environment variables