From 1ac8ee6b87605f0a49c90545967d71ec1c1effb3 Mon Sep 17 00:00:00 2001 From: Ariel Date: Mon, 8 Sep 2014 12:16:15 -0400 Subject: [PATCH] changed java filename to Main This should allow `public class Main` and more than one class as well. --- API/compilers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/compilers.js b/API/compilers.js index 78a3c640..d6b67800 100644 --- a/API/compilers.js +++ b/API/compilers.js @@ -30,7 +30,7 @@ compilerArray[4] = ["nodejs","file.js","","Nodejs",""]; compilerArray[5] = ["scala","file.scala","","Scala",""]; compilerArray[6] = ["\'go run\'","file.go","","Go",""]; compilerArray[7] = ["\'g++ -o /usercode/a.out\' ","file.cpp","/usercode/a.out","C/C++",""]; -compilerArray[8] = ["javac","file.java","\'./usercode/javaRunner.sh\'","Java",""]; +compilerArray[8] = ["javac","Main.java","\'./usercode/javaRunner.sh\'","Java",""]; compilerArray[9] = ["\'vbnc -nologo -quiet\'","file.vb","\'mono /usercode/file.exe\'","VB.Net",""]; compilerArray[10] = ["gmcs","file.cs","\'mono /usercode/file.exe\'","C#",""]; compilerArray[11] = ["/bin/bash","file.sh"," ","Bash",""];