Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help needed with "Error: Could not find or load main class"

SreeramVenkatFeb 24 2017 — edited Feb 24 2017

Hi,

I compiled HBase and when I try running the master, I get "Error: Could not find or load main class"

The complete class name is org.apache.hadoop.hbase.master.HMaster.

I command gave for execution is 'java -cp "." org.apache.hadoop.hbase.master.HMaster'

The path from where I gave the command has org folder which in turn has following subdirectores apache/hadoop/hbase/master. HMaster.class is present under master.

HMaster class has main method with below signature

public static void main(String [] args)

I need help to understand why I get the error. Any help will be much appreciated.

Thanks,

Sreeram

public static void main(String [] args) {
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2017
Added on Feb 24 2017
0 comments
734 views