blob: f9337b23f6524c8f9f37899de2fe506cee397a43 (
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
27
|
package com.e1.pdj;
import java.io.*;
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");
}
}
|