给PKU JudgeOnline免费版添加Java语言支持

配置文件“serverconfig.property”中记录了如下信息,我们可以按需修改之。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
#Wed Feb 26 22:16:41 CST 2003
WelcomePage=/JudgeOnline/index.acm
RootPath=/JudgeOnline/
DefaultTitle=Welcome to JudgeOnline
 
LangCount=4
LanguageDescs=G++,GCC,Pascal,Java,VC,VC++
LanguageExtMemory=868,868,1140,10100,0,0
LanguageExtTime=0,0,0,4000,0,0
LanguageExts=cc,c,pas,java,c,cpp
LanguageExes=exe,exe,exe,class,exe,exe
LanguageTimeFactor=1,1,1,1,1,1
CompileStreamOrder=1,1,0,1,1,1
 
G++CompileCmd=C\:\\JudgeOnline\\bin\\gcc\\bin\\g++.exe -fno-asm -s -w -O1 -DONLINE_JUDGE -o %PATH%%NAME% %PATH%%NAME%.%EXT%
GCCCompileCmd=C\:\\JudgeOnline\\bin\\gcc\\bin\\gcc.exe -fno-asm -s -w -O1 -DONLINE_JUDGE -o %PATH%%NAME% %PATH%%NAME%.%EXT%
PascalCompileCmd=C\:\\JudgeOnline\\bin\\fpc\\fpc.exe -Sg -dONLINE_JUDGE %PATH%%NAME%.%EXT%
JavaCompileCmd=javac %PATH%%NAME%.%EXT%
JavaRunCmd=java -classpath %PATH% %NAME%
#VCCompileCmd=C\:\\JudgeOnline\\bin\\cl.exe %PATH%%NAME%.%EXT% /Fe%PATH%%NAME% /O2 /DONLINE_JUDGE
#VC++CompileCmd=C\:\\JudgeOnline\\bin\\cl.exe %PATH%%NAME%.%EXT% /Fe%PATH%%NAME% /O2 /DONLINE_JUDGE
 
WorkingPath=C\:\\temp
DataFilesPath=D\:\\data
DeleteTempFile=True
RunShell=C\:\\JudgeOnline\\bin\\run.exe
ComShell=C\:\\JudgeOnline\\bin\\com.exe
AdminName=admin
AdminEmail=admin@admin.net
 
Debug=False
DebugFile=C\:\\debug.txt
#ErrFile=C\:\\err.txt

-EOF-