Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:08:59+00:00 2026-05-27T10:08:59+00:00

I have downloaded a project which uses sbt as its build system and I

  • 0

I have downloaded a project which uses sbt as its build system and I want to build it. You’d think it would be as simple as typing “sbt” or something, but no.

I thought I’d add a question for this because it can take literally hours to figure this out on your own. I’m not joking.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:09:00+00:00Added an answer on May 27, 2026 at 10:09 am

    First, you’ll want to use sbt-extras, because that automatically downloads and uses the right version of sbt. Trying to use the wrong version of sbt (newer or older than what the project you’re trying to build says it requires) won’t necessarily work, and may cause strange errors.

    Run it:

    ~/path/to/sbt-extras/sbt
    

    Wait for it to start up and download everything. If you need to use an authenticated proxy, you’ll need to edit the script to specify the username and password for the proxy.

    Check the version of Scala that sbt thinks it needs to build against (at the end of the output, if everything worked). If this is OK, fine, you don’t need to do anything. If it isn’t, you can temporarily specify a version explicitly with ++, e.g.:

    ++2.8.1
    

    (If you want to make this permanent, you can edit the build definition files, but as that involves making a change to files under version control, that might not be what you want to do.)

    Now, if you are using an older version of sbt, don’t skip the next step! You could get strange errors if you do.

    update
    

    Now you can build and test what you’ve built:

    test
    

    If you get an error “Filename too long”, this is not an sbt-specific problem, it’s a scala problem, which most frequently affects Ubuntu users (technically, for Unbuntu users it’s generally related to home directories encrypted with encfs). If you are using Scala >= 2.9, edit the build to use the scalac command-line option that allows you to specify a maximum filename length. Otherwise, if you are on Linux, you can redirect the build to /dev/shm or /tmp, by running these commands in a shell prompt (don’t background sbt with CTRL+Z on Unix, because it may appear to stop working properly):

    rm -rf target
    ln -s /dev/shm target
    

    (you may have to execute these commands in project/build instead or as well.)

    Actually, it’s probably better, and may even be more secure, to create a subdirectory of /dev/shm or /tmp and use that instead.

    The compilation result should appear in target. You might then want to run it, if it’s something you can run:

    run
    

    If everything looks OK, you can optionally publish the result locally so that the result can then be picked up automatically by other sbt builds:

    publish-local
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem in running a new project which I downloaded from github.
I have a web application which uses jQuery UI. The JavaScripts are not downloaded
I have an existing Java project in Netbeans that uses Swing and I would
I have a Java project which uses platform specific libraries. They are quite large
I am trying to build a simple Jabber client. I have downloaded this sample
Within my project I have a Listbox which uses a datatemplate. Within this data
I have downloaded an open source project using graphviz c++ library, which visualizes and
I have downloaded a web project from CodePlex and am getting the following error
Visual Studio 2008. I downloaded a sample project and unzipped it. I have to
I have a project that depends upon some other binaries to be downloaded from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.