You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
611 B

#!/bin/bash
#
# This script runs the version of OpenRocket compiled by Eclipse from
# the bin/ directory. You can provide Java arguments and OpenRocket
# arguments.
#
#该脚本用于运行由Eclipse从bin/目录编译的OpenRocket版本。你可以提供Java
# 参数和OpenRocket参数。
JAVAOPTS=""
while echo "$1" | grep -q "^-" ; do
JAVAOPTS="$JAVAOPTS $1"
shift
done
LIBS="bin/"
LIBS="$LIBS:resources/"
for i in lib/*.jar ; do
LIBS="$LIBS:$i"
done
LIBS="$LIBS:lib/jogl/gluegen-rt.jar"
LIBS="$LIBS:lib/jogl/jogl.all.jar"
java -cp $LIBS $JAVAOPTS net.sf.openrocket.startup.Startup "$@"