sourabh
sourabh

Reputation: 1

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

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

Upvotes: 0

Views: 707

Answers (1)

T.J. Crowder
T.J. Crowder

Reputation: 1073968

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

Upvotes: 5

Related Questions