-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Installation Guide and reorganised images folder
- Loading branch information
1 parent
e7c2f9e
commit 0151abe
Showing
38 changed files
with
202 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
# Installation Guide | ||
This guide aims to help you set up Collate, edit its source code and export it as `.jar` files. | ||
|
||
<!-- MarkdownTOC --> | ||
|
||
- [Setup development environment](#setup-development-environment) | ||
- [JDK 8u40 or later](#jdk-8u40-or-later) | ||
- [Eclipse Luna or later](#eclipse-luna-or-later) | ||
- [e(fx)clipse 1.2.0 or later](#efxclipse-120-or-later) | ||
- [Scene Builder 8.0.0 or later](#scene-builder-800-or-later) | ||
- [Configure development environment](#configure-development-environment) | ||
- [Set SceneBuilder executable](#set-scenebuilder-executable) | ||
- [Set Java JDK](#set-java-jdk) | ||
- [Import, edit and run Collate](#import-edit-and-run-collate) | ||
- [Download the latest release](#download-the-latest-release) | ||
- [Import project into Eclipse](#import-project-into-eclipse) | ||
- [Edit `.fxml` files](#edit-fxml-files) | ||
- [Run Collate](#run-collate) | ||
- [Export Collate](#export-collate) | ||
- [Export GUI version](#export-gui-version) | ||
- [Export TUI version](#export-tui-version) | ||
- [Run exported jar](#run-exported-jar) | ||
|
||
<!-- /MarkdownTOC --> | ||
|
||
# Setup development environment | ||
## JDK 8u40 or later | ||
|
||
http://www.oracle.com/technetwork/java/javase/downloads/index.html | ||
|
||
1. Click JDK download | ||
2. Accept the license agreement and download the appropriate installation file | ||
|
||
## Eclipse Luna or later | ||
|
||
> Eclipse is the IDE that was used to develop Collate. | ||
https://www.eclipse.org/downloads/ | ||
|
||
1. Download "Eclipse IDE for Java Developers" | ||
2. Extract the contents to whichever directory you want. E.g. C:/eclipse | ||
|
||
## e(fx)clipse 1.2.0 or later | ||
|
||
> e(fx)clipse enables you to create new JavaFX FXML projects using Eclipse and start Scene Builder from within the IDE. | ||
http://www.eclipse.org/efxclipse/install.html | ||
|
||
Follow the installation instructions in the link above. | ||
|
||
## Scene Builder 8.0.0 or later | ||
|
||
> Scene Builder enables you to arrange components in JavaFX layouts through a GUI. | ||
http://gluonhq.com/open-source/scene-builder/ | ||
|
||
Download and *install* Scene Builder using the link above. Do not download the executable jar as it will not work when attempting to open Scene Builder from Eclipse. | ||
|
||
# Configure development environment | ||
|
||
## Set SceneBuilder executable | ||
|
||
1. Go to Window > Preferences | ||
2. Click on JavaFX tab | ||
3. Find the SceneBuilder executable. For Windows, it can be found here: `C:\Users\<USER>\AppData\Local\SceneBuilder\SceneBuilder.exe` | ||
4. Click Apply | ||
|
||
![set scene builder](images/installation-guide/set-scene-builder.png) | ||
|
||
## Set Java JDK | ||
|
||
1. In Preferences window, go to Java > Installed JREs | ||
2. Remove the existing entries | ||
|
||
![remove-jre](images/installation-guide/remove-jre.png) | ||
|
||
3. Click Add... | ||
4. Select Standard VM and click Next | ||
|
||
![add-jdk-1](images/installation-guide/add-jdk-1.png) | ||
|
||
5. Navigate to the directory of your installed JDK | ||
|
||
![add-jdk-2](images/installation-guide/add-jdk-2.png) | ||
|
||
6. Click Finish | ||
7. Tick the checkbox beside this entry and click Apply | ||
|
||
![add-jdk-3](images/installation-guide/add-jdk-3.png) | ||
|
||
8. Go to Java > Compiler and ensure the Compiler compliance level is at least 1.8 | ||
|
||
![compiler-compliance-level](images/installation-guide/compiler-compliance-level.png) | ||
|
||
# Import, edit and run Collate | ||
|
||
## Download the latest release | ||
|
||
1. Navigate to https://github.com/collate/collate/releases | ||
2. Download and extract the source code of the latest release | ||
|
||
![download-collate](images/installation-guide/download-collate.png) | ||
|
||
## Import project into Eclipse | ||
|
||
1. In Eclipse, go to File > Import... | ||
2. Select General > Existing Projects into Workspace and click Next | ||
3. Select root directory of the extracted source code and click Finish. | ||
|
||
![import-collate](images/installation-guide/import-collate.png) | ||
|
||
> The default view of the Package Explorer shows the packages in a flat manner. If you want to see packages in a hierarchical manner, click on the downward pointing triangle and change the Package Presentation. | ||
![package-view-1](images/installation-guide/package-view-1.png) | ||
![package-view-2](images/installation-guide/package-view-2.png) | ||
|
||
## Edit `.fxml` files | ||
|
||
> e(fx)clipse enables you to edit `.fxml` files using Scene Builder through Eclipse. | ||
1. Right click on the `.fxml` file and click Open with SceneBuilder. | ||
|
||
![open-with-scenebuilder](images/installation-guide/open-with-scenebuilder.png) | ||
![scenebuilder](images/installation-guide/scenebuilder.png) | ||
|
||
2. After you have saved your edits, refresh the project to ensure the latest `.fxml` files are used. | ||
|
||
![refresh-project](images/installation-guide/refresh-project.png) | ||
|
||
## Run Collate | ||
|
||
### Run Graphical UI version | ||
|
||
1. Open `MainApp.java` from the `gui` package | ||
2. Click Run `MainApp.java` | ||
|
||
![run-gui](images/installation-guide/run-gui.png) | ||
|
||
### Run Text UI version | ||
|
||
1. Open `Collate.java` from the `tui` package | ||
2. Click Run `Collate.java` | ||
|
||
![run-tui](images/installation-guide/run-tui.png) | ||
|
||
# Export Collate | ||
|
||
## Export GUI version | ||
|
||
1. File > Export... | ||
2. Select Java > Runnable JAR file | ||
|
||
![export-gui-1](images/installation-guide/export-gui-1.png) | ||
|
||
3. Select MainApp as the Launch configuration | ||
4. Set Export destination | ||
5. Ensure "Package required libraries into generated JAR" is selected | ||
6. Click Finish | ||
|
||
![export-gui-2](images/installation-guide/export-gui-2.png) | ||
|
||
## Export TUI version | ||
|
||
1. File > Export... | ||
2. Select Java > JAR file | ||
3. Select the src file to be exported and set the export destination | ||
|
||
![export-tui-1](images/installation-guide/export-tui-1.png) | ||
|
||
4. Click Next 2 times | ||
5. Set the Main class | ||
6. Click Finish | ||
|
||
![export-tui-2](images/installation-guide/export-tui-2.png) | ||
|
||
## Run exported jar | ||
For the GUI version, simply double click on the jar file. | ||
For the TUI version, follow the following steps: | ||
|
||
1. Open a command window/terminal in the directory of the jar file | ||
|
||
> For Windows, Shift+Right click in the directory of the jar file and click open command window here. | ||
![command-window-shortcut](images/installation-guide/command-window-shortcut.png) | ||
|
||
2. Enter `java -jar collate-tui.jar` (replace the filename accordingly) | ||
|
||
![command-line-collate](images/installation-guide/command-line-collate.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes