Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Setting up your IDE to compile the project

Yeo Kheng Meng edited this page Apr 28, 2016 · 5 revisions

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.

  1. 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.

  2. Download and unzip the latest Eclipse IDE for Java EE Developers which is Mars 2 as of time of writing.

  3. Clone my project to a a temporary directory.

git clone https://github.com/yeokm1/docs-to-pdf-converter.git
  1. 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.

  2. Install the M2Eclipse plugin. You can follow the instructions here.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Clone this wiki locally