i have found in a native method any c standard input function(such as scanf,gets...) has no effect. i test the same program with jdk, it's ok.