Fixed, just copied that from the first formula I found which runs a jar file.