2015-12-16 08:51:52 +00:00
|
|
|
# java
|
|
|
|
|
2022-10-11 03:59:50 +01:00
|
|
|
> Java application launcher.
|
2023-06-04 02:48:54 +01:00
|
|
|
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/java.html>.
|
2015-12-16 08:51:52 +00:00
|
|
|
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
|
|
|
- Execute a Java `.class` file that contains a main method by using just the class name:
|
2015-12-16 08:51:52 +00:00
|
|
|
|
2017-12-31 04:37:37 +00:00
|
|
|
`java {{classname}}`
|
|
|
|
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
|
|
|
- Execute a Java program and use additional third-party or user-defined classes:
|
2021-11-01 17:25:32 +00:00
|
|
|
|
|
|
|
`java -classpath {{path/to/classes1}}:{{path/to/classes2}}:. {{classname}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Execute a `.jar` program:
|
2015-12-16 08:51:52 +00:00
|
|
|
|
|
|
|
`java -jar {{filename.jar}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Execute a `.jar` program with debug waiting to connect on port 5005:
|
2020-09-17 12:02:16 +01:00
|
|
|
|
|
|
|
`java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar {{filename.jar}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display JDK, JRE and HotSpot versions:
|
2015-12-16 08:51:52 +00:00
|
|
|
|
|
|
|
`java -version`
|
2019-10-11 20:03:27 +01:00
|
|
|
|
2024-01-30 04:55:24 +00:00
|
|
|
- Display help:
|
2019-10-11 20:03:27 +01:00
|
|
|
|
|
|
|
`java -help`
|