This content has been marked as final.
Show 1 reply
-
1. Re: executing javac after run jboss as service
ctomc Apr 20, 2016 9:23 AM (in response to vata2999)your service account has different paths configured.
you should probably use some more "safe" way to locate javac.
something along the lines of
public static String getJavacPath() {
String home = System.getenv("JAVA_HOME");
if(home == null) {
home = System.getProperty("java.home");
}
if(home != null) {
return home + java.io.File.separator + "bin" + java.io.File.separator + "java";
}
return "javac";
}