Sorry.... I meant when I am running the application, the result "Sales: unable to get console" is shown.
I guess there is some configuration problem, and I forgot which...
When i run the application under command prompt, it is okay
but fail when I run under eclipse...
- Run >> run as java application
複製代碼
I have reboot the system, the same results came up
Another symptom is I can run the application as applet, but not application...
Another complement, when I run it using javaw.exe on the command prompt, nothing is displayed
Does anyone know why this happens?
- Console console = System.console();
複製代碼
After the call, console is null
Thanks
[ 本帖最後由 luckiejacky 於 2009-4-1 21:02 編輯 ] |