Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

209 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Needed Configurations:

JavaFX - GUI

These directions are for Eclipse IDE. Iy you do not have Eclipse IDE, go to https://www.eclipse.org/downloads/ to download and install it on your system.

Windows:

step 1: go to https://openjfx.io/ step 2: click on download image scroll down and find the Windows SDK version and download it image step 3: extract the zip folder that was downloaded (remember it's location...you will need it later on) step 4: In Eclipse, go to: Window -> Preferences -> Java -> Build Path - User Libraries -> Name it "JavaFX" -> CLick Add External JARs

    Now in the new window that is opened, find the location where the SDK was extracted to and go to:
    
    javafx-sdk-15.0.1 (or a different version depending on when you are installing it) -> lib 
    
    Select all the executabvle JAR files in that folder and click on Open.

    Back in Eclipse, click on Apply and Close.

step 5: Go to the project that you imported in Eclipse and right click on it. Go to: Build Path -> Add Libraries -> User Library -> Selectt JavaFX -> Click Finish step 6: Right CLick on the project in Eclipse and go to Run As -> Run Configurations -> Arguments

  Copy this: --module-path "PATH_TO_lib" --add-modules javafx.controls,javafx.fxml

  Paste it into The Section VM arguments and replace PATH_TO_lib with the actual path to the lib folder in the SDK that you extracted previously. 

image

  Click on Run.

MacOS:

Follow the same steps as for Windows but replace these steps:

step 2: click on download image scroll down and find the MacOS SDK version and download it image

step 4: In Eclipse, go to: Eclipse -> Preferences -> Java -> Build Path - User Libraries -> Name it "JavaFX" -> CLick Add External JARs

    Now in the new window that is opened, find the location where the SDK was extracted to and go to:
    
    javafx-sdk-15.0.1 (or a different version depending on when you are installing it) -> lib 
    
    Select all the executabvle JAR files in that folder and click on Open.

    Back in Eclipse, click on Apply and Close.

step 6: Right CLick on the project in Eclipse and go to Run As -> Run Configurations -> Arguments

  Copy this: --module-path PATH_TO_lib --add-modules javafx.controls,javafx.fxml

  Paste it into The Section VM arguments and replace PATH_TO_lib with the actual path to the lib folder in the SDK that you extracted previously. 

image

  Click on Run.

PostgreSQL and db.properties - Database

step 1: create a database and name it main.

step 2: using the sss.sql code provided in src -> Database, create the tables using the sql commands provided or simply run the file using this command on psql after selecting the database you are working on \i /path/to/your/sql/file.sql (modify it to be the path to your sss.sql file...it will be in the Database folder)

Screenshot 2024-03-31 at 9 25 26 PM

step 3: Add a new file called db.properties in the Database package (src -> Database -> db.properties). Copy and paste the following 3 lines in to your file db.properties:

db.url = jdbc:postgresql://localhost:5432/databaseName db.username = "xxxx" db.password = "xxxx"

In line 1, replace databaseName with the name of your database. In lines 2-3 you will see db.username = "xxxx" and db.password = "xxxx" modify those lines of code to suit the server that you created in PostgreSQL (use your own username, password, and database url).

Your db.properties file should look similar to the one above in the image.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages