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 7002663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:57:27+00:00 2026-05-27T20:57:27+00:00

I’m working on a Scala script which uses Joda Time. Up until today, this

  • 0

I’m working on a Scala script which uses Joda Time. Up until today, this was working fine. Somehow, something’s changed and it’s no longer working.

This works:

$ scala -cp "lib/*"
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.joda.time._
import org.joda.time._

scala> Period.minutes(5)
res0: org.joda.time.Period = PT5M

but this doesn’t:

$ scala -cp "lib/*" test.scala
/Users/avi/Dev/experiments/rollups/scala/test.scala:4: error: object joda is not a member of package org
import org.joda.time._
           ^
one error found

test.scala contains only:

#!/usr/bin/env scala -cp lib/* -deprecation
!#

import org.joda.time._

Period.minutes(5)

this also doesn’t work:

$ scala -cp "lib/*" -e "import org.joda.time._"
/var/folders/c4/gh5y9_cx5bz8x_4wm060l_mm0000gn/T/scalacmd1248995773392653303.scala:1: error: object joda is not a member of package org
import org.joda.time._
           ^
one error found

It’s also not caused by using * in the cp arg:

$ scala -cp lib/joda-time-2.0.jar:lib/joda-convert-1.2.jar -e "import org.joda.time._"
/var/folders/c4/gh5y9_cx5bz8x_4wm060l_mm0000gn/T/scalacmd5438658792813459030.scala:1: error: object joda is not a member of package org
import org.joda.time._
           ^
one error found

…It’s just so crazy because this was working last time I worked on this project, just a day or two ago! And now it’s not working, and I guess I must have changed something, but honestly I can’t think of what it might be.

Help!

  • 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-27T20:57:28+00:00Added an answer on May 27, 2026 at 8:57 pm

    TL;DR: fsc, the “fast compilation daemon”, had a problem with its cache; fsc -shutdown resolved the problem.

    Seth Tisue in the Scala IRC channel on FreeNode was able to help me solve my problem — it had something do with with fsc the “fast offline compiler daemon”. When the scala command is used to run a script, it uses fsc, and it appears that somehow the classpath used/cached by the daemon got messed up.

    It turns out there are a few ways to work around this:

    • pass the arg -nocompdaemon to scala to just not use fsc at all
      • works, and should be failproof, but slow
    • run fsc -shutdown
      • the daemon will be automatically restarted the next time you use scala
    • run fsc -reset to reset the daemon’s caches
      • would probably be faster than shutting it down but the least failproof option

    I still don’t know exactly what caused this problem to occur in the first place, but the impression I got from Seth and from the fsc page is that this sort of things just happens sometimes.

    Thanks, Seth!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi working on an Android SMS application in scala alls going fine expect I
I'm working with a map in Scala and doing the usual if there's no
I'm working on a project using Scala running Selenium tests as part of a
I'm working on a small MVC framework (it's really very small) in Scala. I'd
I've been trying to get this working and I can't seem to figure it
Working through a sample in Chapter 3 of Programming in Scala, the following code
I'm working on Scala with VERY larg lists of Int (maybe large ) and
Should be an easy one. I'm working on Scala trying to handle long sequences
I'm having trouble getting the taglist plugin working properly with Scala. I've installed the
I am try to write inside html document. this is my javascript code: <script

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.