title: Running a java.class file from Linux command line - Oracle JDK8 Installed - openJDK removed
body: <p>So, I have removed openjdk from my new Ubuntu system and have installed Oracle JDK 8 and Eclipse from their respective websites. I can run a program from Eclipse, however I cannot run it from the command line. I am also not used to using Eclipse (I use NetBeans for my Java class in college.) I noticed that there is no build button in Eclipse. With all of that being said, here is my command line code: </p>
  
  <pre><code>wil@wil-Aspire-E5-521:~/eclipse-workspace/wiltest/src/wiltest$ ls
  test.class  test.java
  wil@wil-Aspire-E5-521:~/eclipse-workspace/wiltest/src/wiltest$ java wiltest.test.java
  Error: Could not find or load main class wiltest.test.java
  wil@wil-Aspire-E5-521:~/eclipse-workspace/wiltest/src/wiltest$ java wiltest.testError: Could not find or load main class wiltest.test
  wil@wil-Aspire-E5-521:~/eclipse-workspace/wiltest/src/wiltest$ java test
  Error: Could not find or load main class test
  wil@wil-Aspire-E5-521:~/eclipse-workspace/wiltest/src/wiltest$ 
  </code></pre>