I am able to build java programs in Sublime Text 2 using the build script. However, is it possible to modify the script to include referenced libraries in the build automatically, say in a folder lib\.
{
"cmd": ["javac", "-Xlint", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"variants": [
{ "cmd": ["java", "$file_base_name"],
"name": "Run"
}
]
}
Thanks
Edit: I am now able to build and run from Sublime Text using
{
"cmd": ["javac", "-cp", "*;.", "-Xlint", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"variants": [
{ "cmd": ["java", "-cp", "*;.", "$file_base_name"],
"name": "Run"
}
] }