0

Using

@echo off
javac source.java
java source

I am able to create source.class file and also run but the out window is not persisting... When java source executes the cmd just blinks and goes off but I want that window visible until we close it. Please help me how to do it? Thanks in advance

Tom Leese
  • 19,309
  • 12
  • 45
  • 70

1 Answers1

3

use PAUSE at end of your batch file

sachin garg
  • 1,316
  • 15
  • 27
  • yeah I tried with it but an applet program is not showing the applet, using pause it is displaying only text written in the program and not taking the input also – user3142242 Dec 28 '13 at 17:08