How can i start jaCG?

jaCG is a simple java program. It's main class is jacg.CodeGen. Run this class with 2 arguments. The first argument is the configuration file. The second argument is the model file. The jar file generator.jar is a self executing jar file. So you can start it with a java vm.

java -jar generator.jar config.xml model.xml
[top]

How can i use jaCG with java 1.4

The distribution is compiled under java 5. If you have a java version 1.4 you must recompile it with this version. To do so you need to remove the generation of the Java5 meta modell from the metagenerator-config.xml. This file is located at generator/conf/codegen. Remove the Java-5 cartridge block and run

ant all

you will get a new generator.jar file that is useable under java 1.4.

[top]