如何创建批处理文件直接打开java控制台?

发布于 2024-09-05 07:01:53 字数 256 浏览 1 评论 0原文

如何创建一个“.bat”文件来直接打开java控制台来编写程序?

例如:

c:\cd \program files\java\jdk1.6\bin

现在我进入了上述文件夹,之后如果我必须编写一个程序,将输入“edit”

,即- c:\program files\java\jdk1.6\bin>编辑

完成所有这些后,将打开一个应用程序来编写程序......

how can i create a ".bat" file to directly open the java console to write the programs?

for example:

c:\cd \program files\java\jdk1.6\bin

now ive entered the above mentioned folder, after that if i have to write a program a will type "edit"

i.e- c:\program files\java\jdk1.6\bin> edit

After doing all this, an application opens to write the programs....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阪姬 2024-09-12 07:01:53

Java 没有用于编写程序的交互式控制台。您可以在任何文本编辑器中创建它们(有数百个可供选择),通过 javac 编译器编译它们(通常有其他选择),然后通过 java< /code> 命令(或将它们包装为可执行 jar 文件)。

有一些开发环境,例如 EclipseNetbeans,以及许多其他可以使某些方面变得更加方便的功能(例如单击按钮编译和运行、代码自动完成、弹出 API 参考等)。

Java doesn't have an interactive console for writing programs. You create them in any text editor (and there are hundreds of them to choose from), compile them via the javac compiler (usually, there are alternatives), and run them via the java command (or by wrapping them up as executable jar files).

There are development environments like Eclipse, Netbeans, and many many others that can make some aspects of this more convenient (like a button click to compile and run, code auto-completion, pop-up API reference, etc.).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文