title: Error: Could not find or load main class xxx Linux
body: <p>I am very new to linux environment.</p>
  
  <p>I am trying to run an simple hello world java class in linux environment.</p>
  
  <h1>Hello .java</h1>
  
  <pre><code> package com.util;
  
      public class Hello {
  
          /**
           * @param args
           */
          public static void main(String[] args) {
              System.out.println("hi");
  
          }
  
      }
  </code></pre>
  
  <p>I have compiled java class in windows environment and uploaded the .class file to linux system into /home/scripts path.</p>
  
  <p>my command is as follows,</p>
  
  <pre><code>java -cp /home/scripts com.util.Hello
  </code></pre>
  
  <p>when i am executing this command from this same /home/scripts where Hello.class is there i am getting,</p>
  
  <p>Error: Could not find or load main class com.util.Hello and not able to proceed further.</p>
  
  <p>can some one help me in this issue?</p>