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))
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!");
}
}
- 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)
You cannot use any Globals in your code so far.
string jdkPath: Path to Java Development Kit. If empty, Fiddle will automatically search the JDK in Program files or Environment variables