增加java编译参数

This commit is contained in:
virusdefender
2015-07-07 18:07:54 +08:00
parent ef88a8a155
commit c033b2c1e8
2 changed files with 35 additions and 16 deletions

View File

@@ -5,21 +5,24 @@
languages = {
"1": {
"name": "c",
"src_name": "main.c",
"code": 1,
"compile_command": "gcc -DONLINE_JUDGE -O2 -Wall -std=c99 -pipe {src_path} -lm -o {exe_path}",
"execute_command": "{exe_path}"
"compile_command": "gcc -DONLINE_JUDGE -O2 -Wall -std=c99 -pipe {src_path} -lm -o {exe_path}main",
"execute_command": "{exe_path}main"
},
"2": {
"name": "cpp",
"src_name": "main.cpp",
"code": 2,
"compile_command": "g++ -DONLINE_JUDGE -O2 -Wall -std=c++11 -pipe {src_path} -lm -o {exe_path}",
"execute_command": "{exe_path}"
"compile_command": "g++ -DONLINE_JUDGE -O2 -Wall -std=c++11 -pipe {src_path} -lm -o {exe_path}main",
"execute_command": "{exe_path}main"
},
"3": {
"name": "java",
"src_name": "Main.java",
"code": 3,
"compile_command": "javac {src_path} -d {exe_path}",
"execute_command": "java {exe_path}"
"execute_command": "java -cp {exe_path} Main"
}
}