#!/bin/sh

JPATHj%%PORTVERSION%%=%%PREFIX%%/lib/j
export JPATHj%%PORTVERSION%%
if [ ! -d ${HOME}/J ]
then
	cp -r ${JPATHj%%PORTVERSION%%}/user ${HOME}/J
fi
exec %%LOCALBASE%%/bin/java -jar %%PREFIX%%/lib/j/j.jar "$@"
