public void jCompileButton_actionPerformed(ActionEvent actionEvent) {
    String path = "classes";

    StringBuffer sb = new StringBuffer();
    sb.append( "import unalcol.agents.examples.labyrinth.teseo.simple.*;\n" );
    sb.append( "import unalcol.agents.*;\n" );
    sb.append( "import unalcol.agents.examples.labyrinth.teseo.*;\n" );
    sb.append( "public class TheAgentProgram extends SimpleTeseoAgentProgram{\n" );
    sb.append( jTextArea1.getText() );
    sb.append( "\n}\n" );
    String fileName = JavaOS.systemPath("classes/TheAgentProgram");
    File file = new File(path);
    try{
      file.mkdir();
      FileWriter writer = new FileWriter(fileName+".java");
      writer.write( sb.toString() );
      writer.close();
      file = new File(fileName+".class");
      if( file.exists() ){
        file.delete();
      }
    }catch( Exception e ){
      e.printStackTrace();
    }

        unalcol.reflect.compiler.Compiler compiler = new unalcol.reflect.compiler.Compiler();
    String pathName = (new File(".")).getAbsolutePath();
    pathName = pathName.substring(0, pathName.length()-1);
    compiler.addClassPath(pathName+"lib/agents.jar");
    compiler.addClassPath(pathName+"examples.jar");
    try{
      if( compiler.run(fileName + ".java") ){
        JOptionPane.showMessageDialog(this,
            "Felicitaciones!!! No se presentaron errores de compilación");
      }else{
        JOptionPane.showMessageDialog(this, "Problemas!!! Se presentaron errores de compilación.\nLa descripción de los errores esta en el Tab error");
        this.theLogPanel.getErrorArea().setText(compiler.error());
      }
    }catch( Exception e ){
      JOptionPane.showMessageDialog(this, "Problemas!!! Se presentaron problemas al compilar.\nLa descripción de los errores esta en el Tab error");
      this.theLogPanel.getErrorArea().setText(e.getMessage());
    }
  }