如何创建批处理文件直接打开java控制台?
如何创建一个“.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Java 没有用于编写程序的交互式控制台。您可以在任何文本编辑器中创建它们(有数百个可供选择),通过 javac 编译器编译它们(通常有其他选择),然后通过 java< /code> 命令(或将它们包装为可执行 jar 文件)。
有一些开发环境,例如 Eclipse、Netbeans,以及许多其他可以使某些方面变得更加方便的功能(例如单击按钮编译和运行、代码自动完成、弹出 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 thejava
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.).