How to run java program on Ubuntu 16.0.4 LTS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to run java program on Ubuntu 16.0.4 LTS?

I have some trouble with opening my java program on Ubuntu

22nd Feb 2017, 11:59 AM
Andrew
2 Answers
+ 2
Have you installed java? If not: sudo apt-get install openjdk-7-jdk Then to open your java projects type "java" "class name" You could just install eclipse or netbeans and run your projects in them. Hope this helps :)
22nd Feb 2017, 12:29 PM
Liam Keegan
Liam Keegan - avatar
0
you have to edit the system path file too. follow these steps: http://m.wikihow.com/Install-Oracle-Java-JDK-on-Ubuntu-Linux
22nd Feb 2017, 4:00 PM
orsi