如何在 Eclipse 中编译 Java 程序而不运行它? [英] How can I compile a Java program in Eclipse without running it?

查看:27
本文介绍了如何在 Eclipse 中编译 Java 程序而不运行它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Eclipse 中编译我的 Java 程序,但不想运行它.我不明白该怎么做.

I would like to compile my Java program in Eclipse but not to run it. I can't understand how to do it.

如何在 Eclipse 中将 Java 程序编译为 .class 文件而不运行它?

How can I compile a Java program to .class files in Eclipse without running it?

推荐答案

您可以在 Project 菜单中取消选中自动构建,然后通过键入 Ctrl + B 手动构建,或单击出现在右侧的图标打印机图标.

You can un-check the build automatically in Project menu and then build by hand by type Ctrl + B, or clicking an icon the appears to the right of the printer icon.

这篇关于如何在 Eclipse 中编译 Java 程序而不运行它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆