org.jscience.computing.ai.expertsystem.compiler
Class JavaCompiler

java.lang.Object
  extended by org.jscience.computing.ai.expertsystem.compiler.JavaCompiler

public class JavaCompiler
extends java.lang.Object

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


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, 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.