Getting Started

Install Smile

Prerequisites
To use the Smile platform, you need JDK 8. Be sure to have the java and javac commands in the current path (you can check this by typing java -version and javac -version at the shell prompt).
  • Create a directory named “installs”
  • Go to smile-repo, download the latest smile-x.y.z.zip and unzip it inside installs folder
  • Rename unzipped folder smile-x.y.z to smile
  • Add smile to classpath : ~/installs/smile/bin
  • open command prompt and > smile should show you the version like below
    1. Smile Version - x.y.z
    2. To create a new project : “smile new <project-name>”
    3. To create a new lib : “smile create-lib <lib-name>”
    4. To export lib : “smile export-lib”
    5. To reset the project : “smile spile”

Setup Intellij IDEA

  1. Download [ https://www.jetbrains.com/idea/download] and Install IntelliJ
  2. Open IDEA
  3. Menu: File -> Settings ->
    Select SBT under IDE Settings Enter -DSMILE_HOME=~/installs/smile-x.y.z (i.e., the smile install directory) in VM parameters textbox Click OK
  4. Menu : File -> Import Project
  5. Select build.sbt located in the project directory and click Ok
  6. Select checkbox - Use Auto Import, Press Ok

Setup Eclipse

  1. Download eclipse from xtext site : https://www.eclipse.org/Xtext/download.html
  2. Install Eclispe with Java Developer version
  3. Install xtext plugin : http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ from Install New Software
  4. Select Xtext SDK
> sbt
    > eclipse-plugin-update <path to eclipse install folder / where the eclipse is unzipped>
  1. Restart Eclipse
  2. Right Click → Import Project