Updated Java Interpreter README and documentation.

This commit is contained in:
Vincenzo Selvaggio 2018-07-27 15:03:03 +01:00
parent 9e9a859e97
commit ce9401079f
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@
Java interpreter for Apache Zeppelin
# Architecture
Current interpreter implementation supports the static repl. It compiles the code in memory, execute it and redirect the output to zeppelin.
Current interpreter implementation supports the static REPL. It compiles the code in memory, execute it and redirect the output to zeppelin.
### Technical overview

View file

@ -49,9 +49,10 @@ public class JavaInterpreter extends Interpreter {
@Override
public void close() {
File dir = new File(".");
File[] dirFiles = dir.listFiles();
// delete all .class files created while compilation process
for (int i = 0; i < dir.list().length; i++) {
File f = dir.listFiles()[i];
File f = dirFiles[i];
if (f.getAbsolutePath().endsWith(".class")) {
f.delete();
}