 controller = null
 editor = null
 progress = null
+# to be initialized in release build
+javac_class = null
 
 class_cache = {}
 raw_cache = {}

    console.error errorThrown
}

try_path = (path) ->
  rv = null
  $.ajax path, {


commands =
  javac: (args, cb) ->
    unless RELEASE?
      return "Usage: javac <source file>" unless args[0]?
      return compile_source args[0], cb
    stdout = (str) -> controller.message str, '', true # noreprompt
    rs = new runtime.RuntimeState(stdout, user_input, read_classfile)
    jvm.run_class(rs, javac_class, args, -> controller.reprompt())
  java: (args, cb) ->
    return "Usage: java class [args...]" unless args[0]?
    raw_data = DoppioFile.load("#{args[0]}.class").read()
