Java on Linux



0
I had installed Java on Fedora 22 but getting the following error

[acrajesh@localhost Java]$ java -version
openjdk version "1.8.0_60"
OpenJDK Runtime Environment (build 1.8.0_60-b27)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)
[acrajesh@localhost Java]$ java UseADuck
Error: Could not find or load main class UseADuck

Kindly advise

1 Answer(s)


0

hi Rajesh,

Question is not clear. IS "UsaADuck" a java class file? and are you trying to execute it. if yes, make sure the class file is in the $CLASSPATH variable.

echo $CLASSPATH
export CLASSPATH=/your/path/of/program