Nile, Scala imports are relative unless the path of the import is prefixed by "_root_". This behavior is the subject of fierce discussion on the Scala list. What does relative mean? It's like this:
import net.liftweb._ import http._ // imports net.liftweb.http._ The problem is that if you have a JAR with some net.java.blah package in it, the Scala compiler will look to resolve java.concurrent._ as net.java.concurrent._ We've generally tried to be explicit about using _root_ for all our imports, etc., but some lazy good for nothing Lift committers (I'm thinking about me), don't always follow the rule... and this has led to the pain you are experiencing. So, I don't know how Maven uses your environment variables, but that's the thing that's poking at the issue. I did some work to make the import paths in Lift absolute. I'll spend time today finishing the cleanup. Thanks, David On Tue, Jul 28, 2009 at 10:52 PM, nile black <nile.bl...@gmail.com> wrote: > Hi,Everyone > > i try to fix the problem > eg: > [WARNING] > D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util\ConcurrentLock.scala:16: > error: value util is not a member of package net.java > [WARNING] import java.util.concurrent.locks._ > > i use > import _root_.java.util.concurrent.locks._ > instead of > import java.util.concurrent.locks._ > > the error disappear! it works. > > but my question is what's difference between with or without _root_??? > > > Nile Black > > > > On Wed, Jul 29, 2009 at 1:07 PM, nile black <nile.bl...@gmail.com> wrote: > >> [WARNING] >> D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util\ConcurrentLock.scala:16: >> error: value util is not a member of package net.java >> [WARNING] import java.util.concurrent.locks._ >> > > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---