I’m not completely sure, but I have a few ideas that might work. Post back if any of these work!
###[ 1 ]
If only a filename is given as an argument, "cmd"
will check for that file @ PATH
variable locations.
You should be able to change it to another drive by using an absolute path.
"cmd": ["D:\runJava.bat", "$file"]
###[ 2 ]
I’m not sure if Sublime Text includes any of its own directories in the PATH search. If it does, you could maybe try relocating the batch file there & leave the sublime-build
code as is.
###[ 3 ]
Not sure if this is possible, but:
Include your Java\jdk1.7.0_79
files in the same location as your portable version of Sublime Text.