Skip to content

michael-kudrik/gongfuTeaTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Final Project for Computer Science 110 Lab

Michael Kudrik
December 2023

Demo

tea_demo.mp4

Table of Contents

About

This is a basic Gongfu tea timer application written in Java, with Maven. The following instructions were adapted by my peer CodeByAidan and are quite finnicky. You may need to just run the project in an IDE as javaFX can be a pain.

How to run the jar

To run, simply cd into this project directory and then cd into target/.

cd path/to/gongfuTeaTimer/
cd target/

Then, run the jar file.

java --module-path $PATH_TO_FX --add-modules javafx.controls,javafx.fxml -jar .\finalproject-1.0.jar

Replace $PATH_TO_FX with the path to your JavaFX installation.

Installing Maven, globally

Click here to see how to install Maven globally.

To install Maven, first download it here (I recommend the binary zip archive).

Then, unzip the archive.

  1. Press Windows key, type adva, and click on the View advanced system settings option.

    screenshot of system settings

  2. In System Properties dialog, select Advanced tab and click on the Environment Variables... button.

    screenshot of environment variables

  3. In “Environment variables” dialog, System variables, click on the New... button and add a MAVEN_HOME variable and point it to the Maven folder.

    screenshot of setting Maven_HOME variable

  4. In system variables, find PATH, click on the Edit... button. In “Edit environment variable” dialog, click on the New button and add this %MAVEN_HOME%\bin\.

    screenshot of editing PATH variable

  5. Open a new command prompt and type mvn -version to verify the installation.

C:\Users\mike>mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: C:\Apache\Maven
Java version: 21.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-21
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

C:\Users\mike>echo %MAVEN_HOME%
C:\Apache\Maven

C:\Users\mike>

Running using Maven

To run using Maven, simply run the following command in the root directory of this project.

cd path/to/finalproject/
mvn package

Building the jar

To build the jar, simply run the following command in the root directory of this project.

cd path/to/finalproject/
mvn clean package

Then, cd into the target directory.

cd target/

Then, run the jar file.

java --module-path $PATH_TO_FX --add-modules javafx.controls,javafx.fxml -jar .\finalproject-1.0.jar

Replace $PATH_TO_FX with the path to your JavaFX installation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published