From 21c2a52ea9153154f4358971c21963714b7ab379 Mon Sep 17 00:00:00 2001 From: Yuriy Brun Date: Sat, 28 Oct 2017 21:12:37 -0400 Subject: [PATCH 1/7] clearing up step 2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 225e80d4..7c3da4f8 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ How to build and run tests from the terminal: 1. Basic Statistics uses Apache Ant. Make sure that you have Ant installed. https://ant.apache.org/ -2. cd into the root directory, which contains the build.xml build file. +2. cd into the Basic Statistics root directory, which contains the `build.xml` build file. 3. Run `ant` to compile. From 2668eaf3a39e7f5707b60e34c9c2119e0240b0cb Mon Sep 17 00:00:00 2001 From: Yuriy Brun Date: Sat, 28 Oct 2017 21:12:45 -0400 Subject: [PATCH 2/7] clearing up step 3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c3da4f8..cc9e99f7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ How to build and run tests from the terminal: 2. cd into the Basic Statistics root directory, which contains the `build.xml` build file. -3. Run `ant` to compile. +3. Run `ant` to compile Basic Statistics. 4. Compiled java classes will be in the `bin` directory. From 585548ae324d4d33bdd442380416394a80cd7efc Mon Sep 17 00:00:00 2001 From: Yuriy Brun Date: Sat, 28 Oct 2017 21:13:06 -0400 Subject: [PATCH 3/7] clearing up step 4 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc9e99f7..47662b06 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ How to build and run tests from the terminal: 3. Run `ant` to compile Basic Statistics. -4. Compiled java classes will be in the `bin` directory. +4. The compiled Basic Statistics class files will be in the `bin` directory. 5. Run `ant test` to run all unit tests. From 89c3dc32ca3a6c0c609d522d1fabdbb2d71b809e Mon Sep 17 00:00:00 2001 From: Yuriy Brun Date: Sat, 28 Oct 2017 21:13:19 -0400 Subject: [PATCH 4/7] clearing up step 5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 47662b06..ed90b707 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ How to build and run tests from the terminal: 4. The compiled Basic Statistics class files will be in the `bin` directory. -5. Run `ant test` to run all unit tests. +5. Run `ant test` to run all Basic Statistics unit tests. 6. Whenever you want to clean up the project, run `ant clean` From 2ca40e8001af2aa97e9de8d7fd7b1d3639df2bc9 Mon Sep 17 00:00:00 2001 From: Yuriy Brun Date: Sat, 28 Oct 2017 21:14:20 -0400 Subject: [PATCH 5/7] cleared up running instructions tweaked the program features description Updated the test command Updated README.md --- README.md | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ed90b707..ca10b1a7 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,45 @@ # Basic Statistics -A Java-based implementation for computing statistics on a set of numbers. +Basic Statistics is a Java-based implementation for computing statistics on a set of numbers. This implementation is intended to be used in software engineering courses as a subject software system. -How to build and run tests from the terminal: +Basic Statistics uses the Apache Ant build system. **Make sure that you have [Ant](https://ant.apache.org) installed.** -1. Basic Statistics uses Apache Ant. Make sure that you have Ant installed. https://ant.apache.org/ +#### How to build Basic Statistics and run its tests from the terminal: -2. cd into the Basic Statistics root directory, which contains the `build.xml` build file. +1. Change into the Basic Statistics root directory, which contains the *build.xml* build file. -3. Run `ant` to compile Basic Statistics. +2. Run `ant compile` to compile Basic Statistics. The compiled class files will be in the *bin* directory. -4. The compiled Basic Statistics class files will be in the `bin` directory. +4. Run `ant test` to run all Basic Statistics unit tests. -5. Run `ant test` to run all Basic Statistics unit tests. +5. Run `ant clean` whenever you want to clean up the project (i.e., delete all generated files). -6. Whenever you want to clean up the project, run `ant clean` +#### How to run Basic Statistics from the terminal: -How to run (from Terminal): +1. After building the project (i.e., running `ant compile`), run: `java -cp bin BasicStats`. The application's GUI will show up. -1. After building the project (i.e., running `ant`), cd into the `bin` - directory and run: `java BasicStats`. The application's GUI should show up. +#### Program features: +* Displays a set of entered numbers. +* Computes the mean of the set of numbers. +* Computes the median of the set of numbers. +* Computes the mode of the set of numbers. -Program features: -* Displayed numbers -* Mean computation -* Median computation -* Mode computation +## Troubleshooting + +#### Outdated version of JUnit +If your system uses an outdated version of JUnit, you may encounter the following error: +``` +[junit] junit/framework/JUnit4TestAdapterCache +[junit] java.lang.NoClassDefFoundError: junit/framework/JUnit4TestAdapterCache +``` +Run `ant -lib lib/ ` to explicitly use JUnit4, which is provided in the *lib* directory. For example, run `ant -lib lib/ test` to run all Basic Statistics unit tests. + +#### Java JDK not installed or misconfigured +If a Java JDK is not installed or properly configured on your system, you may encounter the following error: +``` +BUILD FAILED +build.xml:17 Unable to find a javac compiler; +``` +Make sure that you have a JDK installed and that the JAVA_HOME environment variable is properly set. From cd881fdbb22e481f9ccb4ea397f1007d2aaf8d10 Mon Sep 17 00:00:00 2001 From: shivangi Date: Fri, 21 Feb 2025 08:21:27 +0530 Subject: [PATCH 6/7] second commit for assignment --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ca10b1a7..d3db597f 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,5 @@ BUILD FAILED build.xml:17 Unable to find a javac compiler; ``` Make sure that you have a JDK installed and that the JAVA_HOME environment variable is properly set. + +edit 2: making changes for 4.6 From 8e2aadc6cd7811e762954971f6da05f4dac5b966 Mon Sep 17 00:00:00 2001 From: shivangi Date: Fri, 21 Feb 2025 08:22:34 +0530 Subject: [PATCH 7/7] Revert "second commit for assignment" This reverts commit cd881fdbb22e481f9ccb4ea397f1007d2aaf8d10. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index d3db597f..ca10b1a7 100644 --- a/README.md +++ b/README.md @@ -43,5 +43,3 @@ BUILD FAILED build.xml:17 Unable to find a javac compiler; ``` Make sure that you have a JDK installed and that the JAVA_HOME environment variable is properly set. - -edit 2: making changes for 4.6