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
1 Answer
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)