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

1 Answer 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, 2016 at 9:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .