As described below, you can build and run PunCAT directly with Maven, or you can create a Java JAR that can be run from any system with a Java runtime environment (JRE), or you can create a package for Microsoft Windows that will allow PunCAT to be installed and run like any other native application (without the need to install a JRE in advance). In any case, please make sure that you've first installed the prerequisite tools and resources listed in the following section.
Build tools:
- JDK 15 or a compatible Java development environment
- Apache Maven
External GermaNet resources:
- GermaNet 15.0. Copy
the
GN_V150_XML
directory from the GermaNet distribution into PunCAT'ssrc/main/resources
directory. (Note that GermaNet is a proprietary resource for which you must obtain a licence in advance of downloading.) - The Release 15.0 ILI
mappings
for GermaNet. Copy the
interLingualIndex_DE-EN.xml
file from the ILI mappings distribution into PunCAT'ssrc/main/resources/GN_V150_XML
directory. - The Frequency Lists Release
15.0
for GermaNet. Copy the
GN_V150-FreqLists
directory from the Frequency Lists distribution into PunCAT'ssrc/main/resources
directory.
You may, if you wish, install these GermaNet resources somewhere other
than PunCAT's src/main/resources
directory, in
which case you should update the corresponding paths in
src/main/resources/resourcepaths.json
.
PunCAT may work with versions of GermaNet higher than 15.0, but this
has not been tested. If you use a more recent version, you must
supply your own IPA transcriptions for the words in
src/main/resources/ipa/germanet2ipaLowercase.csv
.
(To produce this file, we used the GermaNet API to extract a list of
all words in GermaNet and then ran it through
Phonetisaurus to
get the transcriptions. You may wish to do something similar, though
you could of course use a different grapheme-to-phoneme tool.)
Run mvn clean javafx:run
from PunCAT's main directory.
Run mvn compile package -P jar
from PunCAT's main directory. The
JAR, named puncat.jar
, will be output in the shade
directory. You
can copy this JAR to any machine with a Java runtime enivornment and
run it as follows: java -jar puncat.jar -Xms1g -Xmx2g
The following instructions require a machine running Microsoft Windows. You should start from a pristine copy of the PunCAT source, since the presence of extra files may interfere with the installer.
- Download JDK 15, extract the zip file,
and set the
JAVA_HOME
environment variable to point to its location. For example:setx JAVA_HOME "C:\jdk-15"
. - Download and install Apache Maven.
- Download and install WiX. Note that it may be necessary to first install and/or enable the .NET Framework 3.5 (which in Windows 10 can be done from the Control Panel under "Programs and Features".)
- Look through the
jpackage
call inbuild_app.bat
, near the end of the file, to see if there is anything you'd like to customize (like the Start Menu group or the company name). You can disable the console window that appears when launching the application by removing the--win-console
flag. - Run
mvn clean install -P jpackage
.
Following these steps, you will find installer in the
target/installer
directory. This installer can be copied to and run
from any other Microsoft Windows machine. After running the
installer, PunCAT can be launched from the Start menu or desktop icon,
just like a native Windows application.