如何启动 Windows 10 上的 Java JRE

huangapple go评论93阅读模式
英文:

How to launch Windows 10 Java JRE

问题

The Java JDK 和 JRE 已安装并设置了环境变量,但桌面上没有 Java JRE 图标。如何启动它?

尝试从 MSDOS 命令行运行,但">Java" 只会启动 jar 文件解释器。
我需要 Java 运行时交互式源代码调试器。

英文:

The Java JDK and JRE has been installed and the environment variables set but no Java JRE icon appears on the desktop. How do you start it?

tried running it from the MSDOS command line but ">Java" gets you the jar file interpreter.
I need the java runtime interactive source debugger.

答案1

得分: 1

"The Java JDK and JRE has been installed" -> "已安装Java JDK和JRE"

"You need only one or the other." -> "您只需要其中一个。"

"To develop Java apps, install a JDK." -> "要开发Java应用程序,请安装JDK。"

"To run an existing Java app, install a JRE." -> "要运行现有的Java应用程序,请安装JRE。"

"no Java JRE icon appears on the desktop" -> "桌面上没有Java JRE图标"

"Java has no built-in GUI to display on a desktop OS such as Windows, macOS, or Linux. So no apps icons will appear." -> "Java没有内置的GUI可显示在Windows、macOS或Linux等桌面操作系统上,因此不会出现应用程序图标。"

"In the bin directory of a JDK/JRE, you will find several console apps. For example, the java console app is used to run Java apps. Invoke these console apps on a command-line in a terminal app such as Windows Terminal on the Windows OS." -> "在JDK/JRE的bin目录中,您会找到多个控制台应用程序。例如,java控制台应用程序用于运行Java应用程序。在Windows操作系统上,可以在终端应用程序中调用这些控制台应用程序,例如Windows Terminal。"

"For example, to see the current version of the default Java installation, on a command-line execute:" -> "例如,要查看默认Java安装的当前版本,请在命令行中执行:"

"java --version" -> "java --version"

"For more info, study a tutorial such as: Run a Java Application from the Command Line by Baeldung." -> "要获取更多信息,请学习如下教程:从命令行运行Java应用程序,由Baeldung提供。"

"As commented by Bodewes, if you want to launch a postmortem debugger to analyze the content of a core dump from a crashed Java Virtual Machine (JVM), use the jhsdb console app." -> "正如Bodewes评论的,如果您想启动事后调试器以分析崩溃的Java虚拟机(JVM)的核心转储内容,请使用jhsdb控制台应用程序。"

"Another debugging tool is jdb. That command demonstrates the Java Platform Debugger Architecture and provides inspection and debugging of a local or remote JVM." -> "另一个调试工具是jdb。该命令演示了Java平台调试器架构,并提供本地或远程JVM的检查和调试。"

"While developing Java software, most folks rely on the debugging facility of their favorite IDE such as IntelliJ, NetBeans, or Eclipse." -> "在开发Java软件时,大多数人依赖于其喜爱的集成开发环境(IDE)的调试功能,如IntelliJNetBeansEclipse。"

英文:

> The Java JDK and JRE has been installed

You need only one or the other.

  • To develop Java apps, install a JDK.
  • To run an existing Java app, install a JRE.

> no Java JRE icon appears on the desktop

Java has no built-in GUI to display on a desktop OS such as Windows, macOS, or Linux. So no apps icons will appear.

In the bin directory of a JDK/JRE, you will find several console apps. For example, the java console app is used to run Java apps. Invoke these console apps on a command-line in a terminal app such as Windows Terminal on the Windows OS.

For example, to see the current version of the default Java installation, on a command-line execute:

java --version

For more info, study a tutorial such as: Run a Java Application from the Command Line by Baeldung.

As commented by Bodewes, if you want to launch a postmortem debugger to analyze the content of a core dump from a crashed Java Virtual Machine (JVM), use the jhsdb console app.

Another debugging tool is jdb. That command demonstrates the Java Platform Debugger Architecture and provides inspection and debugging of a local or remote JVM.

While developing Java software, most folks rely on the debugging facility of their favorite IDE such as IntelliJ, NetBeans, or Eclipse.

huangapple
  • 本文由 发表于 2023年5月11日 07:42:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/76223252.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定