jeops.compiler
Class JavaCompiler

java.lang.Object
  |
  +--jeops.compiler.JavaCompiler

public class JavaCompiler
extends java.lang.Object

Auxiliar class that compiles java files into bytecodes (.class files).

Version:
0.02 11.08.2000 Using Runtime.exec("javac ").
Author:
Carlos Figueira Filho (csff@cin.ufpe.br)

Constructor Summary
JavaCompiler()
           
 
Method Summary
static boolean compileJavaFile(java.lang.String fileName)
          Compile a given .java source file.
static void main(java.lang.String[] args)
          Test method for this class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

JavaCompiler

public JavaCompiler()
Method Detail

compileJavaFile

public static boolean compileJavaFile(java.lang.String fileName)
                               throws JeopsException
Compile a given .java source file.
Parameters:
fileName - the name of the .java source file.
Returns:
true if the class could be compiled; false otherwise.
Throws:
JeopsException - if some error occurs.

main

public static void main(java.lang.String[] args)
Test method for this class.
Parameters:
args - the name of the file to be compiled.