jahilldev
jahilldev

Reputation: 3812

Scala Lift - How to use 3rd party JAR files in project

I've done this before but can't seem to remember what folder to create or where to put jar files.

I'm attempting to include an independently developed JAR file into my Lift project, so I can do:

import org.imgscalr._

And use it etc.

Any help much appreciated, thanks in advance.

Upvotes: 1

Views: 134

Answers (1)

flavian
flavian

Reputation: 28511

Quick bad way:

Add the .jar file to your nameofproject/lib/ folder, it should automatically be added to your classpath.

Proper way: Use SBT

libraryDependencies ++= Seq(
   "org.imgscalr"   %  "imgscalr-lib"      % "4.2"
)

This library is published to Maven Central, right HERE.

Upvotes: 3

Related Questions