Why not point JAVA_HOME to a jdk ?
JAVA_HOME points to my JDK. When I type in SET in the console it shows:
But this is not the point. As far as I know does JBoss not really need a JDK to run. The JRE is absolute sufficient if everything is compiled, as I read in some other posts. The Java compiler is only necessary for Tomcat in order to compile JSP's.
I could send you the two migrated JSR199 libraries. If you have time, you could try them in standalone applications and then e.g. in a EJB3 on JBoss.
I guess that only JBoss need to use the tools.jar library. (I know that tools.jar is in the classpath and inside is the Java compiler. This is specified in the run.bat file.)
So finaly I tried the Java 6 SDK instead of Java 5 and the Java Compiler API (JSR 199) works! :D
Now I can compile Java code in memory, without any file accessm inside of a EJB3.
You need to compile java code inside an EJB? That sounds... unusual. ;)