当前位置: 技术问答>java相关
问一个很着急的问题!
来源: 互联网 发布时间:2014-12-31
本文导语: 我用Jbuilder写一些小程序,在JB里执行时的Dos窗口是自动翻屏的(也就是执行的结果显示时间很短,而且只能看到最后一部分执行结果)我能实现Dos下的DIr /p命令一样的效果吗?(Java的重定向语句是什么?)谢谢大侠...
我用Jbuilder写一些小程序,在JB里执行时的Dos窗口是自动翻屏的(也就是执行的结果显示时间很短,而且只能看到最后一部分执行结果)我能实现Dos下的DIr /p命令一样的效果吗?(Java的重定向语句是什么?)谢谢大侠!!
|
Any light-weight IDE will do the trick. www.jcreator.com is good and free. JPadPro is even better, and is cheap shareware.
You cannot do redirection using the normal dos redirection operator, because this redirects stdout. However errors from javac are given to stderr. So the operator works only for normal program output (to stdout).
Under Win 9x, create a shortcut to the dos prompt (cmd.exe i think) on the desktop. Right-click it and go to properties. Click the Screen tab, and you'll see an option for "initial lines". Change this to 50 (the maximum value). Click OK. Now when you double-click the shortcut, you should get a window of the correct size. This has the bonus that you can set your working directory, run a batch file automatically, and play about with other settings as you wish.
The NT/2K implementation is better though, IMHO.
:)
You cannot do redirection using the normal dos redirection operator, because this redirects stdout. However errors from javac are given to stderr. So the operator works only for normal program output (to stdout).
Under Win 9x, create a shortcut to the dos prompt (cmd.exe i think) on the desktop. Right-click it and go to properties. Click the Screen tab, and you'll see an option for "initial lines". Change this to 50 (the maximum value). Click OK. Now when you double-click the shortcut, you should get a window of the correct size. This has the bonus that you can set your working directory, run a batch file automatically, and play about with other settings as you wish.
The NT/2K implementation is better though, IMHO.
:)
|
使用win2000,它的dos窗口有滚屏功能的
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。