-
Notifications
You must be signed in to change notification settings - Fork 242
Setting up your IDE to compile the project
Since there have been queries on how to compile this project, I have collated my instructions on how does one go about doing this. I've tested with Windows 10 but these instructions should work for other platforms.
-
Download and install the latest Java 8 JDK of your platform which is update 8u92 as of time of writing. The JDK includes the JRE as well so you don't need a separate download.
-
Download and unzip the latest Eclipse IDE for Java EE Developers which is Mars 2 as of time of writing.
-
Clone my project to a a temporary directory.
git clone https://github.com/yeokm1/docs-to-pdf-converter.git
-
Launch Eclipse. When asked to select a workspace, just pick the permanent directory which will hold this project. The normal way I do things is that one workspace should only hold one project.
-
Install the M2Eclipse plugin. You can follow the instructions here.
-
Import my project into your permanent workspace. File -> Import. Select General -> Existing Projects into Workspace. Set the root directory to be where you cloned my directory too. Check the "Copy projects into workspace" option. Note that the project now will no longer be under version control. You might want to transfer the
.git
folder from your temporary directory to the permanent directory. -
Once the project is loaded, Eclipse should automatically download the relevant dependencies from Apache Maven. This may take a few minutes depending on your internet connection.
-
Once all the dependencies have been downloaded, you can compile and run the program. Just right-click on the docs-to-pdf-converter project -> Run As -> Java Application and the program should run in Eclipse's internal console.
-
To export a runnable JAR file. Follow the instructions here. Under Run Configuration select
MainClass
If you wish to update the dependencies I'm using, feel free to send pull requests.