What happens when you compile and run from the command line? Post an SSCCE demonstrating what you're trying to do, as well as the exact output from the command line, an we'll go from there.