Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingRequirementError: object scala.runtime in compiler mirror not found #210

Closed
sunny1978 opened this issue Aug 30, 2016 · 3 comments
Closed

Comments

@sunny1978
Copy link

sunny1978 commented Aug 30, 2016

scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found

:backend-service:playCompile
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
[info] Loading project definition from /home/conflux/WhereHows/backend-service/project
[info] Set current project to backend-service (in build file:/home/conflux/WhereHows/backend-service/)
[info] Updating {file:/home/conflux/WhereHows/backend-service/}backend-service...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 4 Scala sources and 37 Java sources to /home/conflux/WhereHows/backend-service/target/scala-2.10/classes...
[error] error while loading , error in opening zip file
scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.
at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)

My Env:
CentOS 6
JDK 1.8
User: usera (with sudo access). However ran it with just "gradle build". Should I do "sudo gradle build" ?

@sunny1978
Copy link
Author

sunny1978 commented Aug 30, 2016

I have tried same steps - but as a "root" user on CentOS6, JDK1.8. Saw same set of errors

#1:
A problem occurred evaluating project ':backend-service'.

Could not find method module() for arguments [org.slf4j:slf4j-log4j12] on org.gradle.api.internal.artifacts.ivyservice.resolutionstrategy.DefaultResolutionStrategy_Decorated@4ce267cc.

Fix: Went to each build file and commented out the slf4j line. All projects

#2: Above Error.
However after running as "root" - this is gone

#3:
[info] downloading http://repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.2.4/snappy-java-1.1.2.4.jar ...
[info] [SUCCESSFUL ] org.xerial.snappy#snappy-java;1.1.2.4!snappy-java.jar(bundle) (110ms)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: commons-logging#commons-logging;1.1.3!commons-logging.jar
[warn] :: jline#jline;0.9.94!jline.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: download failed: commons-logging#commons-logging;1.1.3!commons-logging.jar
download failed: jline#jline;0.9.94!jline.jar

Tried - But No luck: Added following in WhereHows/build.gradle
to external dependencies
commons-logging:commons-logging:1.1.3
jline:jline:0.9.94

Went past the issue - but then ran in to above listed
"scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found"

Lib's doesnt quite match:
[root@hdp24master WhereHows]# find . -name commons-logging*
./backend-service/lib/commons-logging-1.2.jar
[root@hdp24master WhereHows]#
[root@hdp24master WhereHows]# find . -name jline*
./backend-service/lib/jline-2.12.jar
root@hdp24master WhereHows]# find . -name scala*
./backend-service/project/target/resolution-cache/default/backend-service-build/scala_2.10
./backend-service/project/target/scala-2.10
./backend-service/lib/scala-library-2.10.6.jar
./backend-service/target/scala-2.10
./web/public/vendors/ace/src/snippets/scala.js

Please guide me - so that I can force the build to get latest lib's as mentioned

@sunny1978
Copy link
Author

Same process compiled fine in Mac OSX El Capitan.
Note: I still have to comment out the slf4j12 part.

@PettterPan
Copy link

do u have idea to sloving this problem , share to me ,thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants