This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Eclipse plugin doesn't recognize jar files?

1 reply
jlist9
Joined: 2009-09-29,
User offline. Last seen 42 years 45 weeks ago.

Hi,

I have some classes in a jar file that's included in a Scala project.
The jar file is included
in Referenced Libraries. However, in the IDE, the classes from the jar
file seem not available.
Let's say I have this import line:

import com.mycompany.mypackage

The IDE shows error "value mycompany is not a member of package com".

Is this expected?

Thanks,
Jack

Spiros Tzavellas
Joined: 2009-11-23,
User offline. Last seen 42 years 45 weeks ago.
Re: Eclipse plugin doesn't recognize jar files?

Hi Jack,

which version of the plugin are you using?

If you are using 2.7.x does the error message appear in the Problems
View or only in the editor? If this is the case then this might be an
instance of the 1277 bug and the error message is bogus.

See https://lampsvn.epfl.ch/trac/scala/ticket/1874 and
https://lampsvn.epfl.ch/trac/scala/ticket/1277.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland