Do You Eat Rice?

2015/12/20

SublimeText 2 에서 Java Compile & Runtime

Tools > Build System > New Build System ...

JavaC.sublime-build
{
    "cmd": ["javac", "-Xlint", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.java",
    "variants": [
        { "cmd": ["javac", "-Xlint", "$file"],
          "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
          "selector": "source.java",
          "name": "Java Compile"
        },

        { "cmd": ["java", "$file_base_name"],
          "name": "Java Runtime"
        }
    ]
}


shift+ctrl+b 하면 Java Compile, Java Runtime 실행 가능

댓글 없음:

댓글 쓰기

list of articles