title: compiling TuxGuitar on on OS X, javac can't find packages
body: <p>I'm trying to compile TuxGuitar (a guitar tablature editor) on OS X. I've checked out the code from the TuxGuitar repository:</p>
  
  <p><code>svn checkout svn://svn.code.sf.net/p/tuxguitar/code/trunk tuxguitar-code</code></p>
  
  <p>Now, when I run <code>make</code> which in turn uses <code>ant</code>, it seems <code>javac</code> can't find Java packages within the project source tree. I've put the complete output of <code>make</code> at <a href="http://people.kth.se/~albertwi/tuxg-make-error" rel="nofollow">http://people.kth.se/~albertwi/tuxg-make-error</a>; it's huge so I can't put all of it here in a code block.</p>
  
  <p>I'm assuming this is a semi-trivial class path issue but I can't tell how to modify the build configuration. On line 307 and onward in the <code>make</code> output there are errors/warnings on the form of "some_file.java added as some_file.class doesn't exist", I don't know what this entails:</p>
  
  <pre><code>[javac] org/herac/tuxguitar/app/TGMain.java added as org/herac/tuxguitar/app/TGMain.class doesn't exist.
  [javac] org/herac/tuxguitar/app/TuxGuitar.java added as org/herac/tuxguitar/app/TuxGuitar.class doesn't exist.
  [javac] org/herac/tuxguitar/app/action/TGActionAccessInterceptor.java added as org/herac/tuxguitar/app/action/TGActionAccessInterceptor.class doesn't exist.
  ...
  </code></pre>
  
  <p>On line 715 and onward some class paths are included, but <strong>it seems like not all the necessary folders are appended here</strong> (the TuxGuitar source tree contains folders on the form TuxGuitar-<em>some program component</em>/src/org/herac/tuxguitar, for example TuxGuitar-ascii/src/org and TuxGuitar-fluidsynth/src/org which I believe <em>should</em> be included here but they aren't):</p>
  
  <pre><code>[javac] Compilation arguments:
  [javac] '-d'
  [javac] '/Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/build'
  [javac] '-classpath'
  [javac] '/Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/build:/Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar:/opt/local/share/java/apache-ant/lib/ant-launcher.jar:/opt/local/share/java/apache-ant/lib/ant-antlr.jar:/opt/local/share/java/apache-ant/lib/ant-apache-bcel.jar:/opt/local/share/java/apache-ant/lib/ant-apache-bsf.jar:/opt/local/share/java/apache-ant/lib/ant-apache-log4j.jar:/opt/local/share/java/apache-ant/lib/ant-apache-oro.jar:/opt/local/share/java/apache-ant/lib/ant-apache-regexp.jar:/opt/local/share/java/apache-ant/lib/ant-apache-resolver.jar:/opt/local/share/java/apache-ant/lib/ant-apache-xalan2.jar:/opt/local/share/java/apache-ant/lib/ant-commons-logging.jar:/opt/local/share/java/apache-ant/lib/ant-commons-net.jar:/opt/local/share/java/apache-ant/lib/ant-jai.jar:/opt/local/share/java/apache-ant/lib/ant-javamail.jar:/opt/local/share/java/apache-ant/lib/ant-jdepend.jar:/opt/local/share/java/apache-ant/lib/ant-jmf.jar:/opt/local/share/java/apache-ant/lib/ant-jsch.jar:/opt/local/share/java/apache-ant/lib/ant-junit.jar:/opt/local/share/java/apache-ant/lib/ant-junit4.jar:/opt/local/share/java/apache-ant/lib/ant-netrexx.jar:/opt/local/share/java/apache-ant/lib/ant-swing.jar:/opt/local/share/java/apache-ant/lib/ant-testutil.jar:/opt/local/share/java/apache-ant/lib/ant.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar'
  [javac] '-sourcepath'
  [javac] '/Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/src'
  ...
  </code></pre>
  
  <p>Then on line 1143 and onward I get "package org.herac.tuxguitar.<em>some package</em> does not exist" errors:</p>
  
  <pre><code>[javac] /Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/src/org/herac/tuxguitar/app/TuxGuitar.java:27: error: package org.herac.tuxguitar.action does not exist
  [javac] import org.herac.tuxguitar.action.TGActionManager;
  [javac]                                  ^
  [javac] /Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/src/org/herac/tuxguitar/app/TuxGuitar.java:68: error: package org.herac.tuxguitar.document does not exist
  [javac] import org.herac.tuxguitar.document.TGDocumentManager;
  [javac]                                    ^
  [javac] /Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/src/org/herac/tuxguitar/app/TuxGuitar.java:69: error: package org.herac.tuxguitar.event does not exist
  [javac] import org.herac.tuxguitar.event.TGEvent;
  [javac]                                 ^
  ...
  </code></pre>
  
  <p>I'm not well versed in <code>make</code> and <code>ant</code>. How and where do I make configuration changes so <code>javac</code> can find the packages?</p>
  
  <p>Is the problem so involved that I should ask TuxGuitar developers about this instead?</p>
  
  <p><strong>Update</strong>: I tried using another way of compiling as suggested at <a href="https://sourceforge.net/p/tuxguitar/discussion/522984/thread/3843b30b/#1ce9" rel="nofollow">https://sourceforge.net/p/tuxguitar/discussion/522984/thread/3843b30b/#1ce9</a>, so I go to a folder build-scripts/tuxguitar-macosx-cocoa-64 and run <code>mvn clean package -Dnative-modules=true</code> but then I get errors related to SWT... this, essentially (full output at <a href="http://people.kth.se/~albertwi/tuxg-mvn-error" rel="nofollow">http://people.kth.se/~albertwi/tuxg-mvn-error</a>):</p>
  
  <pre><code>[INFO] Scanning for projects...
  [ERROR] The build could not read 18 projects -&gt; [Help 1]
  [ERROR]   
  [ERROR]   The project org.herac.tuxguitar:tuxguitar:1.3-SNAPSHOT (/Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/pom.xml) has 1 error
  [ERROR]     'dependencies.dependency.version' for org.eclipse.swt:org.eclipse.swt:jar is missing. @ org.herac.tuxguitar:tuxguitar:[unknown-version], /Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar/pom.xml, line 26, column 15
  [ERROR]   
  [ERROR]   The project org.herac.tuxguitar:tuxguitar-browser-ftp:1.3-SNAPSHOT (/Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar-browser-ftp/pom.xml) has 1 error
  [ERROR]     'dependencies.dependency.version' for org.eclipse.swt:org.eclipse.swt:jar is missing. @ org.herac.tuxguitar:tuxguitar-browser-ftp:[unknown-version], /Users/awifstrand/src/tuxg/tuxguitar-code/TuxGuitar-browser-ftp/pom.xml, line 35, column 15
  [ERROR]   
  ...
  </code></pre>
  
  <p>I have the latest version (4.4) of swt.jar in /Library/Java/Extensions so it should be on the class path.</p>