Skip to content

Project Setup Using IntelliJ

Suren Konathala edited this page Aug 2, 2018 · 1 revision

Steps

  • Download the project sources from Github and unzip them to a folder
  • Open IntelliJ
    • Import Project, or
    • Go to File Menu > New > Project from existing sources
  • Choose Folder-on-your-computer > jaqstack > core, then choose "Open"
  • Choose "Create project from existing sources" (default selected)
  • Project name "core" (default)
  • IntelliJ will detect the Java source and will show you the path, with the checkbox selected (below). Choose Next
    • screen shot 2018-07-27 at 2 40 43 pm
  • In the next screen, the option to choose "libraries". You can uncheck "assets" and choose Next
  • Suggested module structure.. (default selected), choose Next
  • Select project SDK. IntelliJ will show all available JDK installed on your machine, choose Next
  • Detected frameworks, with Web selected (default), You can unselect and choose Next.
  • Finish

Maven project detection

IntelliJ will detect the project as Maven and will show you a small window on the bottom-right. You need to click on the small up-arrow, so options show up and choose "Add as Maven Project". This process take a while as IntelliJ tried to download all dependencies.

screen shot 2018-07-27 at 2 47 06 pm

Angular Detection

After the above step, IntelliJ will detect the Angular Framework and will display it on the bottom-right corner. Choose Configure screen shot 2018-07-27 at 2 52 14 pm

Adding

After above, open core > src > main > java > com > jaqstack > servlet > SimpleServlet.java . You will observe that IntelliJ shows RED class names. This is because the jdk jar files need to be added to classpath. To do this, hover over the RED class name, a small RED pops up on the left side of the class name with a small drop-down. Choose the drop-down and select Add library 'Maven:...' to classpath . this should resolve all the errors.

screen shot 2018-07-27 at 2 54 19 pm

screen shot 2018-07-27 at 2 56 59 pm

Clone this wiki locally