No Time for Sergeants (1958)
No Time for Sergeants is a 1958 American comedy film directed by Mervyn LeRoy starring Andy Griffith and featuring Myron McCormick, Don Knotts and most of the original Broadway cast. Warner Brothers contract player Nick Adams joined the cast as Stockdale's fellow military draftee Benjamin B. Whitledge, as did Murray Hamilton as Irving S. Blanchard. The film is based on a play inspired by the original novel.
More at Wikipedia.