vscode java run error in the terminal display?

Viewed 24
1 Answers

1.Termianl : install open jdk

sudo apt-get install openjdk-7-jdk

2.To compile the file, open your terminal and type

javac filename.java

3.To run the generated class file, use

java filename

Related