MathToWeb .com Home|Support
What's New User's Guide Support Download Open Source MathToWeb Online Donate Links
Browsers

Open Source download the Java source code...

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

Download the Java source code for MathToWeb  >>>       MathToWeb_Source_Version_300.zip  (ver. 3.0.0, 443.9KB )  * latest release
  MathToWeb_Source_Version_205.zip  (ver. 2.0.5, 427.7KB)
  MathToWeb_Source_Version_204.zip  (ver. 2.0.4, 424KB)
  MathToWeb_Source_Version_203.zip  (ver. 2.0.3, 414KB)
  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.

  If you are running Ubuntu, it is best to install this via the Package Manager.
Search 'jdk' in the System->Administration->Synaptic Package Manager - you're looking for something that
looks like sun-java6-jdk.

  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 *.* images/
    (leave out the 'images/' part if you are on Windows)
  6. Test the JAR :   java -jar mathtoweb.jar -about (command-line) OR
                            java -jar mathtoweb.jar (GUI)