orhelper is a module which aims to facilitate interacting and scripting with OpenRocket from Python.
sudo apt-get install openjdk-8-jre
For most people jpype will be able to automatically find the JDK. However, if it fails or you want to be sure you are using the correct version, add the JDK path to a JAVA_HOME environment variable:
/usr/lib/jvm/[YOUR JDK 1.8 FOLDER HERE]
)~/.bashrc
file with your favorite text editor (will likely need sudo privileges)~/.bashrc
file:
export JAVA_HOME="/usr/lib/jvm/[YOUR JDK 1.8 FOLDER HERE]"
source ~/.bashrc
JAVA_HOME = C:\Program Files\Java\[YOUR JDK 1.8 FOLDER HERE]
JAVA_HOME = C:\Program Files\ojdkbuild\[YOUR JDK 1.8 FOLDER HERE]
Install orhelper from pip
pip install orhelper
Download the OpenRocket .jar file (if you don't already have it)
wget https://github.com/openrocket/openrocket/releases/download/release-15.03/OpenRocket-15.03.jar
Set environment variable CLASSPATH
path to OpenRocket .jar file. (Only required if it's not already at .\OpenRocket-15.03.jar
)
CLASSPATH=\some\path\to\OpenRocket-15.03.jar
See examples/
for usage examples
See the OpenRocket wiki for more info on usage and the examples