You could always just excise the interloper, at least for a non-SBT-managed Scala... If you did that in a an SBT-managed Scala I'm pretty sure SBT would just put it back.

In the SBT case, you might try revoking all permissions to read that JAR. I don't know what the classloader would do in that case, but one hopes it's robust enough to skip over it and keep looking through the class-path...

Related Query

More Query from same tag