4 Replies Latest reply on Sep 3, 2007 4:44 PM by Daniel Kimmig

    JBoss on JDK to use JSR199

    Marco Pehla Newbie

      Hello everybody,

      I need to compile generated Java source code on JBoss inside of a EJB3. I already migrated the JSR 199 compiler API of Java 7 to libraries that can be used in ordinary Java 5 standalone applications. The JSR 199 Java Compiler API works pretty well and does not need any access to the underlying file system. This is everything I need. But JBoss is running on a JRE, only Tomcat use the JDK.

      JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();

      This is the reason why the compiler object in the code above is null.

      How can I run JBoss on a JDK. I couldn't be so difficult, or am I wrong?

      Thank you in advance,