Use the java -jar option to execute a properly configured jar file.