hi,

Generating the .class files at run time requires that you have a Java compiler
available.  If you're running a JRE (Java Runtime), I'm not positive, but I
think that *excludes* the tools like the java compiler.

More recent versions (1.6 and later?) of Java have a way of invoking the
compiler via a Java API;
see
http://www.accordess.com/wpblog/an-overview-of-java-compilation-api-jsr-199/

This capability has not (as of yet) been incorporated into the JCasGen tooling
(we're still trying to be Java 1.5 compliant).

-Marshall

On 9/20/2013 9:54 AM, Eirini Psallida wrote:
> Hi,
>
> i use the jcasgen tool in my java code through the Jg class which is
> implemented in the
> uima-tools.jar and this generates the sources for my type system.
> Is it possible jcasgen to generate also the .class files?
> I want to use them in the runtime, and now this is not possible since i
> have to deal with source code...
> Any idea?
>
> Thanks,
>
> Eirini
>

Reply via email to