<Tr> <Th> Box office </Th> <Td> $4 million </Td> </Tr> <P> Willy Wonka & the Chocolate Factory is a 1971 American musical fantasy film directed by Mel Stuart, and starring Gene Wilder as Willy Wonka . It is an adaptation of the 1964 novel Charlie and the Chocolate Factory by Roald Dahl . Dahl was credited with writing the film's screenplay; however, David Seltzer, who went uncredited in the film, was brought in to re-work Dahl's screenplay against his wishes, making major changes to the ending and adding musical numbers . These changes and other decisions made by the director led Dahl to disown the film . </P> <P> The film tells the story of Charlie Bucket (Peter Ostrum) as he receives a Golden Ticket and visits Willy Wonka's chocolate factory with four other children from around the world . Filming took place in Munich in 1970, and the film was released by Paramount Pictures on June 30, 1971 . With a budget of just $3 million, the film received generally positive reviews and earned $4 million by the end of its original run . Paramount distributed the film until 1977, and beginning in the 1980s, Warner Bros. assumed control of the rights for home entertainment purposes . The film then made an additional $21 million during its re-release by Warner Bros. under its Family Entertainment banner in 1996 . The film became highly popular in part through repeated television airings and home entertainment sales . In 1972, the film received an Academy Award nomination for Best Original Score, and Wilder was nominated for a Golden Globe as Best Actor in a Musical or Comedy, but lost both to Fiddler on the Roof . The film also introduced the song "The Candy Man", which went on to become a popular hit when recorded by Sammy Davis Jr . In 2014, the film was selected for preservation in the United States National Film Registry by the Library of Congress as being "culturally, historically, or aesthetically significant". </P> <P> In an unnamed town, children visit a candy shop . Charlie Bucket, a poor paperboy, stares through the window as the shop owner sings "The Candy Man". Walking home, he passes Willy Wonka's chocolate factory . A mysterious tinker recites the first lines of William Allingham's poem "The Fairies", and tells Charlie, "Nobody ever goes in, and nobody ever comes out ." Charlie rushes home to his widowed mother and bedridden grandparents . After telling Grandpa Joe about the tinker, Joe reveals that Wonka locked the factory because other candy makers, including rival Arthur Slugworth, sent in spies to steal his recipes . Wonka disappeared, but for three years resumed selling candy; the origin of Wonka's labor force is unknown . </P>

When was willy wonka and the chocolate factory released