Links
- SO: include external jar when running java
- docs.oracle.com: Viewing the Contents of a JAR File
- Viewing a JAR's Manifest File
Snippets
# Running a jar # NOTE: When running from a .jar this way, any classpaths you've # set, including using -cp on this same command, are ignored. # Only the paths from the manifest file in the jar are used and # those can only be relative paths. java -jar ./selenium-server-standalone-2.39.0.jar # Ref: http://stackoverflow.com/a/2910128 # A preferred method, if you know the classname, is java -cp /path/to/jar/foo.jar:/more/jar/paths/if/needed/bar.jar com.your.main.classname