blob: 041a4f7e99ce92ded6adcb2535625b6ea2d469f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package com.e1.pdj;
import com.cycling74.max.MaxSystem;
public class JikesCompiler extends GenericCompiler {
JikesCompiler() {
super("jikes");
}
void compileClass() throws PDJClassLoaderException {
if ( GenericCompiler.rtJar == null )
throw new PDJClassLoaderException("pdj: JAVA_HOME not found");
String args = "jikes " + resolvJavaFile() +
" -classpath " + GenericCompiler.rtJar + getConfigurationClassPath() +
" -sourcepath " + PDJClassLoader.fclasses.toString();
int rc = exec(args);
if ( rc != 0 ) {
throw new PDJClassLoaderException("pdj: compiler returned: "+ rc + ",args: " +args);
}
MaxSystem.post("pdj: compile successful");
}
}
|