• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Need answer asap

 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im not sure if this is the right forum, but I need an answer asap. I jar'd my app now im attempting to launch it. Im running Windows 98
and in msdos i can only see 50 lines at a time, how would i go about redirecting the stream so that i can read all of it. Im not familiar with dos commands so can you be specific
Thank you all
 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried
java -jar yourjar.jar > standardoutputgoeshere.txt 2> errorsgohere.txt
The two files are created but they are both empty
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A more descriptive subject line might net you a better shot at an answer.
hth,
bear
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marilyn knows the answer.
If she doesn't happen by, you could just redirect the System.out and/or System.err print streams to new ones of your choosing ( with System.setOut( PrintStream ) and System.setErr( PrintStream ) ).
Good Luck.
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you flush your stream?

I've usually directed stdout and stderr to the same file with

without any problems on Wintel platforms - but I did have an instance where I wasn't seeing my output because I didn't flush the stream.
 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry i know i could have come up with a better title, but in a
moment of panic thats all i thought of. Anyways I figured that problem
now i have another one. If I double click on my .jar im unable to enter any of the JTextFields, the JButton and other items work. Yet if I run the program from dos I can enter the first JTextField and if want to enter the 2nd textfield I have to click to another program and then return to the java program to obtain access to the 2nd field. Any ideas?
Thank you all again for your time
 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok i was using JWindow and I switched to JDialog problem solved. I would rather use JWindow...
Any suggestions
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic