| | |
Window closes too quickly
![]() |
Not sure what the problem is, but you could try sending the output to a text file to view it in Notepad. Normally to run a java class file you would type something like Try That will create a file, output.txt, that you can open and view the console output of your program.
Java Syntax (Toggle Plain Text)
java myProgram
Java Syntax (Toggle Plain Text)
java myProgram > output.txt
first better way... is try to run programs in command prompt thats is the best way to start a learning step for java
install jdk 1.5 or latest 1.6
then set your class path
compile it
javac programname.java
and run
java programname
you will get the output in the command prompt console itself
install jdk 1.5 or latest 1.6
then set your class path
compile it
javac programname.java
and run
java programname
you will get the output in the command prompt console itself
Adios,
Vinod......
Vinod......
use the following at the end of your code
it will pause your command prompt and wait for an input.
Java Syntax (Toggle Plain Text)
BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in.readLine();
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
Similar Threads
- Detect browser window closing event in Firefox - (JavaScript / DHTML / AJAX)
- Why Output Window disappears? (C++)
- IE6 Browser Window closes when accessing certain websites (Web Browsers)
- Please help a beginner - window closes (C++)
- Windows IE closes when I open it.... (Web Browsers)
- Cant execute a c++ program (C++)
- IE 6 only allows 1 browser open at a time!! (Web Browsers)
- IE 6.0 browser window closes on submit (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: HashTable Output
- Next Thread: How do I deal with multiple button presses with KeyListener?
| Thread Tools | Search this Thread |
-xlint add android api applet application applications array arrays automation bank bi binary blackberry bluetooth chat class client code compile compiler component database development digit eclipse equation error event fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite input int integer j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux list login loop main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying pearl problem program programming project qt recursion scanner screen scrollbar server set sms sort sorting spamblocker sql sqlserver string superclass swing system text-file thread threads tree variablebinding windows xor





