Sublime Forum

Help needed with build systems

#1

Hello, I’m trying to write a custom build system for java. I want my build system to compile and run a simple class. The problem I’m experiencing is that $basename and $filedir don’t return anything. Here is my code so far.

{
	"cmd": "javac", "$file"],
	"cmd": "java", "-cp", "${filedir:/}", "$basename"],
	"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
	"selector": "source.java"
}

Thanks.

0 Likes

#2

You can’t use “cdm” twice and you seem to be using wrong variable names.

More info here:

sublimetext.info/docs/en/referen … #variables

0 Likes