<< jcast JIMS jconvMatrixMethod >>

JIMS >> JIMS > jcompile

jcompile

Compile Java code

Calling Sequence

class = jcompile(className, code);

Parameters

className

A string giving the class name

code

A row or a column of strings containing the Java code.

class

A mlist typed _JClass

Description

Compile Java source code and load the corresponding class. If the package tools.jar, distributed with JDK, is not in the classpath, the Eclipse Compiler for Java (ECJ) will be used.

Examples

hw = jcompile("HelloWorld", ["public class HelloWorld {"
                             "public static String getHello() {"
                             "return ""Hello World !!"";"
                             "}"
                             "}"]);

hello = hw.getHello()

jremove hello hw

See Also

Author


<< jcast JIMS jconvMatrixMethod >>