         editor.getSession().setValue(data)
     if args[0]?
       node.fs.readFile args[0], 'utf8', (err, data) ->
-        if err then controller.message "Could not open file #{args[0]}: #{err}", 'error', true
-        else startEditor data
+        if err then data = defaultFile
+        startEditor data
         controller.reprompt()
       return null
     else

    return null
  javap: (args) ->
    return "Usage: javap class" unless args[0]?
    node.fs.readFile "#{args[0]}.class", (err, raw_data) ->
      if err
        controller.message "Could not find class '#{args[0]}'.",'error'
      else
        controller.message(disassembler.disassemble(process_bytecode(raw_data)), 'success')
    return null
  rhino: (args, cb) ->
    jvm.set_classpath "#{sys_path}/vendor/classes/", './'

  # the working version that occurs first in the classpath.
  try_get()

process_bytecode = (buffer) -> new ClassData.ReferenceClassData(buffer)

onResize = ->
  h = $(window).height() * 0.7
