Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install JetBrains Toolbox
  2. Install IntelliJ
  3. Import Clowder SBT project into IntelliJ - you should be automatically prompted to install SBT / Scala support
  4. Create a "Play 2.0 App" Run Configuration - be sure to add
  5. Download JNotify and edit your Run Configuration to add it to your path - your JVM arguments should include -Djava.library.path=path/to/jnotify to you JVM arguments
  6. Download JNotify and add it to your path

JNotify Setup

To compile Clowder you will need to have at least version 1.7 of JAVA. Version 1.8 will work as well.

...

The following message will display in the development console in IntelliJ if playframework is unable to locate JNotify is the in this case:

Cannot load the JNotify native library (no jnotify_64bit in java.library.path)
Play will check file changes for each request, so expect degraded reloading performace.

...

Create a new folder called "jnotify" in the "toolslib" directory: e.g. path/to /Library/Java/JavaVirtualMachines/jdk1.8/tools.0_77.jdk/Contents/Home/lib/jnotify

Next, paste jnotify-0.94.jarlibjnotify.so, and libjnotify.jnilib to the path/to/jdk1.8/toolslib/jnotify folder.

Finally, add this folder to your the following argument (adjusted with your correct path) to the JVM arguments in your Run Configuration for Clowder in IntelliJ:

-Djava.library.path=

...

/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib/jnotify 

Builds too slow? Increase -Xmx

In IntelliJ, often the default memory constraints are too low for Scala projects.

From the top menu, choose Help → Edit Custom VM Options and find the -Xmx flag.

This is your JVM's maximum memory heap size, which defaulted to 750MB for me.

Upping this value will decrease the amount of garbage collection necessary during build, and can therefore increase your overall build speed/tools/jnotify in IntelliJ.

Required Dependencies

There are still a few things missing before Clowder will run properly

...