MathToWeb .com Home|Support|MathToWeb Pro
What's New User's Guide FAQs Support Download Open Source MathToWeb Pro Donate Blog
Browsers Forum

Open Source download the Java source code...

MathToWeb is open source software licensed under the GNU General Public Licence (version 3) as published by the Free Software Foundation (see www.gnu.org), and you may redistribute and/or modify it under these terms.

Note:  The source code has not yet been tidied up. It still contains my own comments, notes, scratched-out functions, etc., which cause quite a lot of meaningless clutter. I hope to improve this situation in future versions, however, for now I'm afraid you'll have to just wade through it.  Please contact me if you're overcome by confusion!

Download the Java source code for MathToWeb  >>>       MathToWeb_Source_Version_203.zip  (ver. 2.0.3, 414KB )  * latest release
  MathToWeb_Source_Version_202.zip  (ver. 2.0.2, 389KB)

Note: The above source code is pre-set for 'command-line'.
To change this to GUI (Graphical User Interface), set    bThisProgramIsCommandLineOnly = false;
in MathToWeb.java.

Compiling the Java source code:

The compressed source file (download it above) contains two directories, Source and Class (see the figure below), that are important with regard to compilation. After decompressing the file, you should see a directory structure that resembles the following:

If you don't already have a version of the Java sdk (software development kit), you can get one here -> java.sun.com

  1. At the command-line, make Source your current directory.
  2. Compile the source, placing the resulting *.class files in the Class directory :   javac -d ./../Class *.java
    (on a Windows machine, use \ for directory separators)
  3. Make Class your current directory
  4. Test the compilation :   java MathToWeb
  5. Create an executable JAR (named mathtoweb.jar) in the current directory :   jar cmf mathtoweb_manifest.txt mathtoweb.jar *.*
  6. Test the JAR :   java -jar mathtoweb.jar -about (command-line) OR
                            java -jar mathtoweb.jar (GUI)