| | |
Window closes too quickly
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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?
Views: 1512 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Java
3d @param affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth byte c# chat class classes click client code color compare component corrupted database detection draw eclipse error event exception file fractal game givemetehcodez graphics gui guitesting helpwithhomework html ide image input integer j2me java java.xls javaprojects jmf jni jpanel julia keytool keyword linux list loop map method methods mobile netbeans newbie number object oracle pong print problem producer program programming project projectideas read recursion reflection rim scanner screen server set size sms socket sort sql string swing terminal test threads time transfer tree web windows





