Title: Return of the Jedi
Content:  McDiarmid as The Emperor, the founder and supreme ruler of the Galactic Empire, and Darth Vader's Sith master. Alan Webb was originally cast in the role but he dropped out due to illness. Lindsay Anderson was offered the role but he declined due to scheduling conflicts with Britannia Hospital. Ben Kingsley and David Suchet were also considered. ; Frank Oz as Yoda, a wise, centuries-old Jedi Master of an unknown alien species, who lives in exile on Dagobah and trained Luke. ; David Prowse as Darth Vader, a powerful Sith lord, the Emperor's apprentice, and second-in-command of the Empire; Luke 
Title: Return of the Jedi
Content:  Leia's father. ; James Earl Jones as Darth Vader's voice ; Sebastian Shaw as Anakin Skywalker ; Alec Guinness as Obi-Wan Kenobi, the deceased Jedi mentor of Luke, and of his father before him, who continues to guide Luke in his journey as a Force spirit.  Denis Lawson reprises his role as Wedge Antilles, an X-wing pilot in the Rebellion, from the previous two films. Kenneth Colley and Jeremy Bulloch reprise their roles from The Empire Strikes Back as Admiral Piett, the commander of Darth Vader's flagship, the Executor, and bounty hunter Boba Fett, respectively. Michael Pennington portrays Moff Jerjerrod, 
Title: Return of the Jedi
Content: Mark Hamill as Luke Skywalker, one of the last living Jedi Knights, trained by Obi-Wan Kenobi and Yoda; Leia's twin brother, Han's friend and Darth Vader's son who is also a skilled X-wing fighter pilot in the Rebellion. ; Harrison Ford as Han Solo, captain of the Millennium Falcon who becomes a General in the Rebellion; Luke's friend, and Leia's love interest. ; Carrie Fisher as Leia Organa, the former princess of the destroyed planet Alderaan, who is a leader of the Rebellion, Luke's twin sister, and Han's love interest. ; Billy Dee Williams as Lando Calrissian, the former Administrator 
Title: Changes in Star Wars re-releases
Content:  At the end of the film, Darth Vader is redeemed by killing the Emperor to save Luke Skywalker's life, then dies of his injuries shortly after, and appears to Luke as Anakin Skywalker alongside the Force spirits of Yoda and Obi-Wan Kenobi. In the 1983 theatrical release, Sebastian Shaw plays this Force ghost in addition to an unmasked Vader. Hayden Christensen later played Anakin in the prequel trilogy films Attack of the Clones and Revenge of the Sith. To reflect this, the 2004 DVD release of Return of the Jedi replaced Shaw's appearance as the Force ghost with Christensen, which was considered controversial by some. Den of Geek rated it as the worst change to the original trilogy. The Digital Bits notes that the 2019 4K restoration made it more obvious where Anakin's head was replaced.
Title: Ian McDiarmid
Content:  After a minor part in the film Dragonslayer (1981), McDiarmid was cast by George Lucas in Return of the Jedi (1983) as Emperor Palpatine, the main villain. CNN named McDiarmid fourth in their top 10 British villains, stating it was his "darkly seductive voice" that "stole the show", and it was a "masterclass in ruling through fear and manipulation." Sixteen years after Return of the Jedi, he reprised the role as the character's younger incarnation of Senator (and later Chancellor) Palpatine and Sith Lord Darth Sidious in the prequel films: The Phantom Menace, Attack of the Clones, and Revenge of the Sith. The prequels had him play two faces to his character; he re-created his diabolical interpretation of Palpatine from Return of the Jedi 
Title: Return of the Jedi
Content:  Mon Calamari officer; Phil Herbert as Hermi Odle; Tik and Tok (Tim Dry and Sean Crawford) as Whiphid and Yak-Face; Phil Tippett as the Rancor with Michael McCormick; and Pat Welsh as the voice of Boushh. Jabba the Hutt was operated by Toby Philpott, David Barclay and Mike Edmonds (who also portrays the Ewok Logray) operated the tail. Larry Ward portrays the Huttese language voice with Quinn, among other roles, controlling the eyes. Barclay, Quinn, and David Greenaway assisted Frank Oz in performing Yoda. Alan Rickman auditioned for the role of Moff Jerjerrod but lost the role to Michael Pennington.
Title: Darth Vader
Content:  in one day and required only a few takes, with no alteration from the original dialogue. Lucas personally directed Shaw for his appearance in the final scene of the film, in which he plays Anakin's Force spirit. Shaw's likeness in this scene was replaced with that of Christensen in the 2004 DVD release. This attempt to tie the prequel and original trilogies together was one of the most controversial changes in a Star Wars re-release. Shaw received more fan mail and autograph requests from Return of the Jedi than he had for any role in the rest of his career. He later reflected that he enjoyed his experience on the film and expressed particular surprise that an action figure was made of his 
Title: Sebastian Shaw (actor)
Content:   In 1982, Shaw was chosen for the small but crucial role of redeemed, unmasked and dying Anakin Skywalker in Return of the Jedi, the third and final film in the original Star Wars trilogy. As in the previous films, David Prowse and Bob Anderson played the costumed scenes, while James Earl Jones and Ben Burtt provided the voice and breaths of Darth Vader. Shaw was cast in a single scene with Mark Hamill, during the moment aboard the second Death Star when Luke Skywalker unmasks his dying father. Since the scene was unquestionably the emotional climax of the film, the casting crew sought an experienced actor for the role. Contrary to popular belief, Shaw was familiar 
Title: Return of the Jedi
Content:  A three-hour radio drama adaptation of the film was written by Brian Daley with additional material contributed by John Whitman and was produced for and broadcast on National Public Radio in 1996 (over a decade after the radio adaptations of the first two Star Wars films). It was based on characters and situations created by George Lucas and on the screenplay by Kasdan and Lucas. Anthony Daniels reprised his role from the film as C-3PO, but Mark Hamill and Billy Dee Williams (who lent their voices to the previous radio adaptations) were replaced by newcomer Joshua Fardon and character actor Arye Gross, respectively. Bernard Behrens and Brock Peters reprised their roles as Obi-Wan Kenobi and Darth Vader, respectively. John Lithgow voiced Yoda, and veteran character actor Ed Begley, Jr. played Boba Fett. Ed Asner voiced Jabba the Hutt, speaking only in grunts.
Title: Return of the Jedi
Content:  did not want younger moviegoers to dismiss Vader's claim as a lie. Many ideas from the original script were left out or changed. For instance, the Ewoks were going to be Wookiees and the Millennium Falcon would be used in the arrival at the forest moon of Endor. Following the defeat of the Emperor, the film was originally intended to end with Obi-Wan Kenobi and Yoda returning to life from their spectral existence in the Force, along with Anakin Skywalker, thanks to Yoda being able to prevent him from becoming one with the Force. They would then join the rest of the characters in their celebration on Endor.

Question: who played darth vader at the end of return of the jedi?
Answer: James Earl Jones.