Commit 3a740c2a authored by Konrad Pröll's avatar Konrad Pröll
Browse files

fixed classpath

parent 1bb3ec41
......@@ -71,7 +71,7 @@ public class JavaCompiler {
case Action:
case Parser:
blob="public class DummyClass{"+blob+"}";
parser.setEnvironment(new String[] {"/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar"}, new String[] {""}, new String[] { "UTF-8"}, true);
parser.setEnvironment(new String[] {""}, new String[] {""}, new String[] { "UTF-8"}, true);
parser.setResolveBindings(true);
parser.setSource(blob.toCharArray());
parser.setKind(ASTParser.K_COMPILATION_UNIT);
......@@ -81,7 +81,7 @@ public class JavaCompiler {
case Init:
case Scan:
blob="public class DummyClass{\n\tpublic void dummymethod()\n\t{"+blob+"\n\t}\n}";
parser.setEnvironment(new String[] {"/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar"}, new String[] {""}, new String[] { "UTF-8"}, true);
parser.setEnvironment(new String[] {""}, new String[] {""}, new String[] { "UTF-8"}, true);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setSource(blob.toCharArray());
parser.setResolveBindings(true);
......@@ -90,7 +90,7 @@ public class JavaCompiler {
break;
case ActionCode:
blob="public class DummyClass{\n\tpublic void dummymethod("+"Integer e"+")\n\t{"+blob+"\n\t}\n}";
parser.setEnvironment(new String[] {"/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar"}, new String[] {""}, new String[] { "UTF-8"}, true);
parser.setEnvironment(new String[] {""}, new String[] {""}, new String[] { "UTF-8"}, true);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setSource(blob.toCharArray());
parser.setResolveBindings(true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment