title: Java Jar -java.lang.NoClassDefFoundError: com.google.api.client.http.HttpTransport from
body: <p>i am using webmaster tool Java api V3 to query data , my code work fine in eclipse  but when i export it to a Jar i get the error below </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com.google.api.client.http.HttpTransport
      at java.lang.J9VMInternals.prepareClassImpl(Native Method)
      at java.lang.J9VMInternals.prepare(J9VMInternals.java:430)
      at java.lang.Class.getMethod(Class.java:1061)
      at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:506)
      at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:498)
  Caused by: java.lang.ClassNotFoundException: com.google.api.client.http.HttpTransport
          at java.net.URLClassLoader.findClass(URLClassLoader.java:665)
          at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:851)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:82
  </code></pre>
  
  <p>my dependecies are as follow </p>
  
  <p><a href="https://i.stack.imgur.com/JbuLV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JbuLV.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/FLwE5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FLwE5.png" alt="enter image description here"></a></p>
  
  <p>i am compiling and exporting the jar in Java6 and executing it using Java7.</p>
  
  <p>i assume it's a dependency issue but i don't know how to resolve it ?? espically it's working in eclipse but when i export the jar from eclipse keeping the default config and selecting the main class i get <code>NoClassDefFoundError</code> ,  any ideas thank you in advance.</p>