#!/usr/bin/env perl

use FindBin;

$basePath = $FindBin::RealBin;

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

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

