title: how to compile this java application
body: <p>I need to compile the Java app from this code on Windows:</p>
  
  <p><a href="http://www.falstad.com/vector3dm/base.java" rel="nofollow">http://www.falstad.com/vector3dm/base.java</a></p>
  
  <p>The comments at the to mention that</p>
  
  <pre><code>// this file must be run through cpp with one of BUILD_E, BUILD_V,
  // BUILD_M defined before compiling with java compiler.  This was done
  // to reduce class file sizes.
  </code></pre>
  
  <p>I don't know what it means. Does cpp stands for C++ compiler? How do I run it on this java code?
  I see some #define statments in the code.
  Being a Java code I would expected 'javac base.java' to just work</p>
  
  <p>Can someone please explain what I need to do in order to compile the code.</p>
  
  <p>Thank you.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>@Ahmed Masaud:<br>
  I downloaded anarres-cpp-bin-1.2.6.tar.gz from the annarres website and extracted in my JDK directory. 
  Here is what I have now: </p>
  
  <p>C:\Program Files\Java\jre6\bin\base.java</p>
  
  <p>C:\Program Files\Java\jre6\lib\anarres-cpp.jar</p>
  
  <p>C:\Program Files\Java\jre6\lib\gnu.getopt.jar</p>
  
  <p>When running the command you indicated</p>
  
  <blockquote>
    <p>java -Xmx128M -cp lib/anarres-cpp.jar:lib/gnu.getopt.jar
    org.anarres.cpp.Main -o base-e.java -DBUILD_E base.java</p>
  </blockquote>
  
  <p>and here is what I get:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoClassDefFoundError:
    org/anarres/cpp/Main Caused by: java.lang.ClassNotFoundException:
    org.anarres.cpp.Main
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: org.anarres.cpp.Main.  Program will exit.</p>
  </blockquote>
  
  <p>it looks like it can't find 'org.anarres.cpp.Main'</p>