#!/usr/bin/env perl

use FindBin;

$basePath = $FindBin::RealBin;

$ENV{CLASSPATH}=".:$basePath/j3dvrml.jar:$basePath/acerola3d/*";
$ENV{LD_LIBRARY_PATH}="$basePath/acerola3d";

if ($#ARGV == -1) {
    system("java jp.sourceforge.acerola3d.j3dvrml.J3DVrml");
} else {
    system("java jp.sourceforge.acerola3d.j3dvrml.J3DVrml -open $ARGV[0]");
}

