calculator
This is a calculator app built in Swing using Jep (Java Embedded Python) on the backend. It supports...
TODO
TODO
NOTE: This project only builds on Windows. If you deal with JEP integration in a different way it should theoretically work cross-platform, but I didn't want to bother with that.
To install:
-
Clone this repository
-
Navigate to the folder
calculator/ -
Run
./build
By default, ./build will run a Maven install with tests skipped and deal with any missing dependencies along the way. The following flags can be passed to ./build:
-q/--quietto suppress output-c/--cleanto clean the build (delete the target/ directory). this can be combined with other flags (e.g../build -c -mto runmvn clean compile)-o/--clean-onlyto clean without doing anything else-m/--compileto compile the build without packaging or installing-p/--packageto package the build without installing-t/--testto use tests, which are always skipped by default. this can be combined with other flags.
If you encounter any issues, make sure Maven, JDK 17, and some version of Python >= 3.6 are properly installed and on the PATH. The build script will install necessary python dependencies if they aren't already.
Once the project has been built, you can open the calculator by running ./run
The following flags can be passed to ./run:
-D[setting name]=[setting value]to set core program behavior before execution-q/--quietto suppress output-b/--buildto build before execution-w/--no-consoleto stop the console from opening (this will also disable debug mode, though log files will still be created if DEBUG_LOG is true)-c/--clear-logsto clear the existing log files-d/--debug-consoleto open the debug console instead of the calculator-t/--testto run tests instead of opening the calculator-f [file path]to run a custom test file (this is equivalent to-Ddebug_file=[file path], it exists here as a convenience)