He first saw action during the 1971 JVP Insurrection as Lieutenant and was promoted to Captain in 1973. He was promoted to Major in 1977, Lieutenant Colonel in 1986 and Colonel in 1988; serving as the Commanding Officer, 5 Field Engineer Regiment; Chief Instructor, Sri Lanka Military Academy and Military Liaison Officer, Ministry of Defence.
As a Colonel, Janaka Perera took a significant role in suppressing the JVP insurrection of 1987–89. He was the Provincial Commander of the North-Western Province as well as being in charge of the special operations of the Operation Combine in Colombo which led to the capture of the JVP leader Rohana Wijeweera. He was promoted to Brigadier in 1989. He went on to command the 24 Brigade. He got parachute qualified in 1990.
Welioya
In 1995, Brigadier Perera was Brigade Commander of the Independent "Special Forces" Brigade when he was transferred to Weli Oya as the Brigade Commander, 6 "Welioya" Brigade in May 1995. He preparation and command of the brigade during the Battle of Weli Oya in July 1995 resulted in a major victory for the army killing over 300 LTTE carders while losing only 2 soldiers, at the time of the battle 6 Brigade was made up of mostly reservists from volunteer regiments. Soon after the victory, he was transferred to command the elite Reserve Strike Force which consisted of special forces, commando and air mobile units in Jaffna.
Few months later in late 1995, Brigadier Pererea played a major role during Operation Riviresa which led to the liberation of the Jaffna peninsula, during which he commanded the elite 53 Division which consisted of the Independent Brigade, Air Mobile Brigade, Armored Brigade and an Infantry Brigade.
Following the Second Battle of Elephant Pass in April 2000 which forced the Sri Lankan Army units in Jaffna to fall back due to lack of fixed defence positions, Perera was appointed Overall Operations Commander and was tasked with countering the LTTE offensive, along with Major General Sarath Fonseka who was appointed Security Forces Commander, Jaffna. During this time there were fears in Colombo that the 40,000 troops in the Jaffna peninsula would be cut off, trapped, and overrun. President Chandrika Bandaranaike Kumaratunga negotiated with the Indian government for ships to evacuate troops from the peninsula due to the lack of transport ships in the Navy. However, the Indian government refused to provide ships. Launching several effective counter-offensives that halted the LTTE advance, removing the threat to the Jaffna peninsula and succeeded in established the defence line in the Jaffna peninsula, which remained in place till the last days of the war.
Chief of Staff
Major General Janaka Perera was appointed as Chief of Staff of the army in 2000 but retired in 2001 when he was overlooked for promotion to Army Commander, causing him to retire in 2001. He had the unique distinction of being the Colonel Commandant of the Commando Regiment, Special Forces Regiment and the Corps of Sri Lanka Engineers.
Following his retirement he was made Sri Lanka's High Commissioner to Australia and later Sri Lanka's Ambassador to Indonesia, but was recalled before his term ended. ;Accusation of war crime After he was appointed Sri Lanka's High Commissioner to Australia, the Tamil community there accused him of being responsible for hundreds of deaths and the torture of Tamils in the Jaffna peninsula when he was in command. About 300 Tamils protested outside the Australian parliament accusing General Perera of war crimes. The human rights groupAmnesty International raised similar concerns. However, no formal charges were ever brought against General Perera and he served his full four years as Sri Lankan High Commissioner in Australia, after which he was Sri Lankan Ambassador to Indonesia.
Political career
Since his retirement from his diplomatic career, General Perera took up active politics as a member and an organizer of the United National Party.
Janaka Perera married Vajira de Silva, who was one of the first six lady officers to join the Sri Lanka Army Women's Corps in 1982. Vajira trained at the Women's Royal Army Corps College in 1980 and had reached the rank of Major before her retirement from the army. Her brother Lieutenant Upul de Silva, who had also joined the army was killed in action. Janaka and Vajira Perera had three children together: Janukshi, Shehara and Ashanka.
Death
Assassination
Janaka Perera and his wife were killed by a suspected suicide bomb blast on 6 October 2008 in Anuradhapura. The bombing which occurred at the United National Party office near the Old Bus Stand in Anuradhapura, killed about 27 civilians and politicians while injuring 90 more. The dead included 4 UNP provincial councillors and former Sri Lankan Ambassador and UNP party manager in Anuradhapura Dr Rajah Johnpullé and his wife. The government blamed the attack on the Liberation Tigers of Tamil Eelam. The UNP and opposition leader Ranil Wickremesinghe has asked for an international investigation on the death of Janaka Perera and numerous others.
Request for security
The government has been blamed by Wikremesinghe and others for not providing adequate security for General Perera, who had to ask the Supreme Court for protection during the provincial council election when the government candidate was given security and he was not. Two weeks prior to the assassination, Janaka Perera had complaint to the Superintendent of Police - Anuradhapura for security having received information on a threat to his life. He had cited that he had received a detail of seven police officers prior to the provincial elections on a Supreme Court order and had been withdrawn by the government. His lawyers had been preparing a fundamental rights petition in the Supreme Court the week he was assassinated.
Funeral
After laying in Anuradhapura for the public to pay their respects, the coffins of Major General Janaka Perera and his wife Vajira Perera were transported to Colombo to their residence in Kirullapone. On 11 October 2008, the coffins were taken by procession to the Colombo General Cemetery, where the coffin of Major General Janaka Perera was transfers to a gun carriage of the Sri Lanka Artillery and final rights carried out with full military honors.
Aftermath
On 5 September 2014, the Anuradhapura High Court sentenced the first accused in the bombing, Sanmuganathan Sudhaharan who was linked to the LTTE suicide wing to a twenty year rigorous imprisonment having been found guilty on two counts of conspiring and abetment to suicide bombing. The accused had plead guilty on 22 August 2014. The second accused, Hameer Umar was sentenced to life imprison by the Anuradhapura Special High Court. Umar had pleaded not guilty to the charges and the case was transferred to the Anuradhapura Special High Court in September 2015 on a directive by the Chief Justice.