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
- Smile Version - x.y.z
- To create a new project : “smile new <project-name>”
- To create a new lib : “smile create-lib <lib-name>”
- To export lib : “smile export-lib”
- To reset the project : “smile spile”
Setup Intellij IDEA¶
- Download [ https://www.jetbrains.com/idea/download] and Install IntelliJ
- Open IDEA
- 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
- Menu : File -> Import Project
- Select build.sbt located in the project directory and click Ok
- Select checkbox - Use Auto Import, Press Ok
Setup Eclipse¶
- Download eclipse from xtext site : https://www.eclipse.org/Xtext/download.html
- Install Eclispe with Java Developer version
- Install xtext plugin : http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ from Install New Software
- Select Xtext SDK
> sbt
> eclipse-plugin-update <path to eclipse install folder / where the eclipse is unzipped>
- Restart Eclipse
- Right Click → Import Project