#!/bin/sh

# Copyright (c) 2002-2016 TeamDev Ltd. All rights reserved.
# If your system variable $JAVA_HOME is not defined, just uncomment the next line
# and set correct path to java.

#export JAVA_HOME=...

case `find jniwrap.lic` in
     "")
	echo "Cannot start Code Generator: no JNIWrapper license file found.\n Make sure that the jniwrap.lic file is located in the current folder."
	;;
     *)
	export CLASS_PATH=./:../lib/antlr.jar:../lib/license.jar:../lib/licence.jar:../lib/jniwrap-3.12.jar:../lib/jniwrap-generator-3.12.jar:../lib/slf4j-api-1.5.8.jar:../lib/slf4j-simple-1.5.8.jar
	$JAVA_HOME/bin/java -cp $CLASS_PATH com.jniwrapper.generator.Application
	;;
esac

exit 0
