 root = this
 
 # /home/doppio/vendor/classes/java/lang/Runtime.class - Causing magic number error as byte array is []
+# /home/doppio/vendor/classes/java/lang/Runtime.class
 
 root.init_editor = ->
     root.editor = ace.edit('source')

    compile: (stdout, fname, finish_cb) ->
        console.log "Compiling #{fname} ..."
        start_compile = (new Date()).getTime()
        jvm.set_classpath '/home/doppio/vendor/classes/', './:/home/doppio'
        user_input = (resume) -> resume ''
        bs_cl = new ClassLoader.BootstrapClassLoader(@read_classfile)
        rs = new runtime.RuntimeState(stdout, user_input, bs_cl)
        @rs = rs
        args = [ fname ]
        my_cb = ->
            end_compile = (new Date()).getTime()
            @rs = null
            console.log "javac took a total of #{end_compile-start_compile}ms."
            console.log 'Compilation complete'
            finish_cb()
        jvm.run_class rs, 'classes/util/Javac', args, my_cb
        return

    exec: (stdout, stdin, class_name, class_args, finish_cb) ->

                data = util.bytestr_to_array node.fs.readFileSync(fullpath)
            catch e
                data = null
            if data != null and data.length <= 0
                console.log "Empty data for: #{fullpath}"
            return cb(data) if data != null and data.length > 0
        failure_cb(-> throw new Error "Error: No file found for class #{cls}.")

    load_mini_rt: ->
