hi,all,recently i came across the st2,and i like the style of that very much.But after a day’s try, i can’t succeed in run the java program in the st2.
I have created a javacr.sh in the /usr/bin path, and i put this file in the command path.
the content of it would be:
$ cat javacr.sh
#!/bin/sh
javac $1.java
java $1
And i create a new build system,called javaRun and its content would be:
{
"cmd":"javacr","$file_base_name"],
"file_regex": "^(...?):([0-9]):?([0-9]*)",
"selector": "source.java"
}
I thought that would be ok.But while i try to build that project.
I failed with error no 2: no such file or directory.
And the environment is : path: /usr/bin:/bin:/usr/sbin:/sbin