开发者

how to create a batch file to directly open the java console?

开发者 https://www.devze.com 2023-01-02 20:07 出处:网络
how can i create a \".bat\" file to directly open the java console to write the programs? for example:

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....


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.).

0

精彩评论

暂无评论...
验证码 换一张
取 消