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

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

1
  • ** you helped me out** thanx buddy – harsh Sep 4 '16 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.