...did you compile said program? or just copy it over in source form? if so, compile it first.
To reiterate what adamk said, if the program is a simple text based application... running it via "JWM" won't produce any noticeable output, use xterm as demonstrated above.