title: How to make executable file for Mac for running java command
body: <p>I have following command that runs on Windows:</p>
  
  <pre><code>java -classpath lib/prov-jdk14-132.jar;../EncUtility com.xxxx.projects.disc.bowl.FileChooseApp
  </code></pre>
  
  <p>Now I am using nano command to make executable with following command in OS X:</p>
  
  <pre><code>java -classpath ../EncUtility/lib/prov-jdk14-132.jar:../EncUtility com.xxxx.projects.disc.bowl.FileChooseApp
  </code></pre>
  
  <p>This command runs perfectly in a terminal but when I use nano command to make utility then it shows the following error:</p>
  
  <pre><code>cp_mac1$ /Users/cp_mac1/Desktop/EncUtility/start ; exit;
  Exception in thread "main" java.lang.NoClassDefFoundError: com/xxxx/projects/disc/bowl/FileChooseApp
  Caused by: java.lang.ClassNotFoundException: com.xxxx.projects.disc.bowl.FileChooseApp
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  logout
  
  [Process completed]
  </code></pre>
  
  <p>I have figure out that it uses extra <code>/start</code> in path. But i am not able to solve it even using <code>cd ..</code></p>