码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse 运行程序

时间:2017-12-16 18:34:39      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:运行   content   post   size   按钮   none   ati   ref   鼠标   

Eclipse 运行程序


运行 Java 程序

我们可以在 Package Explorer 视图

可以在 Package Explorer 视图中快速运行 Java 程序。

Package Explorer 视图:

鼠标右击包含 main 函数的 java 类选择 Run As > Java Application

同样你也可以在 Package Explorer 视图中选择包含 main 方法的类并按下快捷键: Alt + Shift + X, J

以下两种方式都能创建一个新的 Run Configuration(运行配置) 我们可以使用它来启动 Java 应用程序。

如果运行配置已经创建,你可以在 Run 菜单中选择 Run Configurations 来启动 Java应用,点击运行配置的名称,然后点击运行按钮的Java应用程序。

技术分享图片

Run 菜单中的 Run 选项可以重新启动先前启动 Java 应用。

技术分享图片

重新启动先前启动 Java 应用快捷键为 Ctrl + F11。

Eclipse 运行程序

标签:运行   content   post   size   按钮   none   ati   ref   鼠标   

原文地址:http://www.cnblogs.com/cisum/p/8046972.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!