title: Not Able to run the project through Command Prompt
body: <p>Hi Sorry for Asking on the Same Question..</p>
  
  <p>I am Running my project in Netbeans </p>
  
  <pre><code> String  build_path=getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
  command.add(build_path+"i_view32.exe"); command.add(source_p+"/import_pal="+pal_file+"/convert="+ Dest_p+"");
  </code></pre>
  
  <p>This is Working fine in NetBeans but When i am Running the build from command prompt </p>
  
  <pre><code>java -jar "D:\Pallete\dist\Pallete.jar"
  </code></pre>
  
  <p>Gives me Following Exception:</p>
  
  <pre><code>java.lang.NullPointerException
          at pal.btn_OkActionPerformed(pal.java:214)
          at pal.access$100(pal.java:22)
          at pal$2.actionPerformed(pal.java:85)
          at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  </code></pre>
  
  <p>When I click on Ok Button it throws Exception  at line 214 </p>
  
  <pre><code>public static String  jarpath ;
  public static String  buildpath;
      buildpath  = getClass().getClassLoader().getResource("").getPath();
      jarpath=getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
  </code></pre>