calculator_gassm14
Requirements
- java-11-openjdk
- Apache Maven 3.8.1
Java Calculator project
Compilation
Navigate to the calculator-java/ folder and run:
mvn package
The resulting jar file can then be located in the calculator-java/target/ folder.
Execution
Navigate to the newly generated target/ folder and launch the jar:
java -jar calculator-java-1.0-SNAPSHOT.jar
JavaCC Calculator project
To easily compile and run this project, you can use the shell script compileRun.sh located in calculator-javacc/. If you still prefer to compile and run separately, you can check out the sections below.
Compilation
Navigate to the calculator-javacc/ folder and run:
javacc Calculator.jj && javac *.java
Execution
In the same folder, execute:
java Calculator