Skip to content
Aaron K Redshaw edited this page Jun 29, 2019 · 6 revisions

Welcome to the DebtPayoff wiki!

This wiki is for beginners. If you are not used to compiling and running a java program, this wiki will get you up and running. By the end, you should be able to run DebtPayoff from any platform.

Chose your platform:

Linux (this page) / Windows / MacOS

Contents:

  • How do I install Java?
  • How do I download DebtPayoff?
  • How do I compile DebtPayoff?
  • How do I run DebtPayoff?

How do I install Java?

Each kind of Linux distribution has a different method for software installation.

  • Ubuntu (Debian based): sudo apt install default-jdk
  • Fedora (RPM package manager): dnf search openjdk. This shows available JDK packages. You have options. Then sudo dnf install <package name> to install the one you want.

Java is now installed.

How do I download DebtPayoff?

Really, there are two main ways you can download the source code for this program: The easy way and the developer's way. I will show you both.

The easy way

  1. In a web browser, go to https://github.com/aredshaw/DebtPayoff/tree/master/src.
  2. Right-click on DebtPayoff.java and select Save link as...
  3. Select where you want to save the code and click Save.

The developer's way

  1. First install git
  1. Using your terminal, navigate to where you want to save your files.
  2. In your web browser go to https://github.com/aredshaw/DebtPayoff. (Create a GitHub account if you have not done this yet.) Then at the top right of the DebtPayoff page, click on Fork.
  3. On that same page just below that click on Clone or Download and then click on the clipboard icon to the right of the URL (web address). I circled where you should click in red.

Clone or Download-Clipboard

  1. Go back to your terminal and type:
git clone {use Command-V here to paste the URL}.

It may look something like:

git clone https://github.com/aredshaw/DebtPayoff.git

The whole project is now downloaded to your computer.

How do I compile DebtPayoff?

  1. In the command prompt go into the DebtPayoff directory
  2. type: cd DebtPayoff
  3. Inside this directory type: javac DebtPayoff.java and hit enter

If it compiles correctly, just type java Debtpayoff and the program will start.