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

On 2010年07月28日, in 杂谈, by xiao

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


#
#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
可以采用同样的方法增加其他语言的支持
Share and Enjoy:
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • 豆瓣
  • 豆瓣九点
  • Add to favorites
  • email
  • Live
  • RSS
Tagged with: