0

strong text

i have installed openjdk-8-jdk from synaptic package manager and want to run java programs on my ubuntu (16.4) terminal shows me this kind of error:could not find or load java class file enter image description here

harsh
  • 111

1 Answers1

2

You need to compile the code first:

javac table.java

this will create the file table.class. This is the executable program, which you can run like so:

java table

(without the .class extension)

Zanna
  • 70,465