     console.error errorThrown
 }
 
+if RELEASE?
+  $.ajax "third_party/classes/sun/tools/javac/Main.class", {
+    type: 'GET'
+    dataType: 'text'
+    beforeSend: (jqXHR) -> jqXHR.overrideMimeType('text/plain; charset=x-user-defined')
+    success: (data) ->
+      javac_class = process_bytecode data
+  }
+
 try_path = (path) ->
   rv = null
   $.ajax path, {

  new ClassFile(bytes_array)

compile_source = (fname, quiet) ->
  throw 'Sorry, the compiler has been disabled.' if RELEASE?
  source = DoppioFile.load(fname).read()
  return controller.message "Could not find file '#{fname}'.", 'error' unless source?
  $.ajax 'http://people.cs.umass.edu/~ccarey/javac/', {

controller = null
editor = null
progress = null
# to be initialized in release build
javac_class = null

class_cache = {}
raw_cache = {}
