diff --git a/trunk/core/judge_client/judge_client.cc b/trunk/core/judge_client/judge_client.cc index da917a5e30e..e50634f62af 100644 --- a/trunk/core/judge_client/judge_client.cc +++ b/trunk/core/judge_client/judge_client.cc @@ -2400,9 +2400,9 @@ void run_solution(int &lang, char *work_dir, double &time_lmt, int &usedtime, sprintf(java_xmx, "-Xmx%dM", mem_lmt); //sprintf(java_xmx, "-XX:MaxPermSize=%dM", mem_lmt); - execl("/usr/bin/java", "/usr/bin/java",java_xmx , + execle("/usr/bin/java", "/usr/bin/java",java_xmx , "-Djava.security.manager", - "-Djava.security.policy=./java.policy", "Main", (char *) NULL); + "-Djava.security.policy=./java.policy", "Main", (char *) NULL,envp); break; case 4: //system("/ruby Main.rb