При отправке java файла получаю следующее сообщение:
Code: Select all
"javac" -source 1.6 -Xlint:unchecked a_4.java
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
в логах:
Code: Select all
Mon Sep 17 10:02:05 2012:info:scan_dir: found 'G000DDINDAJQ' (priority 0)
Mon Sep 17 10:02:05 2012:info:Move: /home/ejudge/judges/compile/var/compile/queue/dir/G000DDINDAJQ -> /home/ejudge/judges/compile/var/compile/queue/out/30216_ejudge-2012_G000DDINDAJQ
Mon Sep 17 10:02:05 2012:info:reading file /home/ejudge/judges/compile/var/compile/queue/out/30216_ejudge-2012_G000DDINDAJQ
Mon Sep 17 10:02:05 2012:info:Copy: /home/ejudge/judges/compile/var/compile/src/G000DDINDAJQ.java -> /var/lib/ejudge/compile/work/000013.java
task_Start: execv(3): /home/ejudge/judges/compile/scripts/javac 000013.java 000013.jar 0</dev/null 1>>/var/lib/ejudge/compile/work/log 2>&1
Mon Sep 17 10:02:05 2012:info:Compilation failed
Mon Sep 17 10:02:05 2012:info:Copy: /var/lib/ejudge/compile/work/log -> /home/ejudge/judges/compile/var/compile/000001/report/000013
Mon Sep 17 10:02:05 2012:info:writing file /home/ejudge/judges/compile/var/compile/000001/status/in/30216_ejudge-2012_000013
Mon Sep 17 10:02:05 2012:info:Move: /home/ejudge/judges/compile/var/compile/000001/status/in/30216_ejudge-2012_000013 -> /home/ejudge/judges/compile/var/compile/000001/status/dir/000013
Mon Sep 17 10:02:05 2012:info:clear_directory: /var/lib/ejudge/compile/work cleared
Файлы настроек java.cfg:
Code: Select all
version="1.6.0_24"
arg=""
long_name="Java JDK"
src_sfx=".java"
exe_sfx=".jar"
arch="java"
JAVARUN="java"
JAVACRUN="javac"
JAVADIR="/usr"
JAVAVER="1.6"
файл serve.cfg:
Code: Select all
...
compile_max_vm_size = 512M
compile_max_file_size = 32M
....
[language]
id = 18
short_name = "javac"
long_name = "Java JDK 1.6.0_24"
arch = "java"
src_sfx = ".java"
exe_sfx = ".jar"
max_vm_size = 512M
....
[tester]
name = Linux-java
arch = "java"
abstract
no_core_dump
kill_signal = TERM
memory_limit_type = "java"
secure_exec_type = "java"
start_cmd = "runjava"
start_env = "LANG=C"
start_env = "EJUDGE_PREFIX_DIR"
Подскажите, как решить проблему.
При попытке скомпилировать в ручную получаю:
Code: Select all
ejudge@ejudge-2012:/var/lib/ejudge/compile/work$ /home/ejudge/judges/compile/scripts/javac 00002.java 00002.jar
"javac" -source 1.6 -Xlint:unchecked a_4.java
"/usr/bin/jar" cvfm "00002.jar" a_4.mf *.class
added manifest
adding: a_4.class(in = 1078) (out= 670)(deflated 37%)
ejudge@ejudge-2012:/var/lib/ejudge/compile/work$ /home/ejudge/judges/compile/scripts/javac 00001.java 00001.jar
"javac" -source 1.6 -Xlint:unchecked a_b.java
"/usr/bin/jar" cvfm "00001.jar" a_b.mf *.class
added manifest
adding: a_b.class(in = 584) (out= 382)(deflated 34%)