NoClassDefFoundError: scala/reflect/internal/settings/AbsSettings when "show compile:full-classpath" in Play project? - scala

When I execute show compile:full-classpath in the Play console I get:
[error] (drivetag-play/compile:compile) java.lang.NoClassDefFoundError: scala/reflect/internal/settings/AbsSettings
I'm attempting to add scala-reflect-2.10.0 to the classpath because when I try to compile the whole project it gives me the same error. How can I solve this?

Related

I am using Maven in Eclipse and it shows an error message saying that I may be using a JRE. However, I am using a JDK. How can I resolve this issue?

I am trying to run a "maven test" and I get this error in the console:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gpdb-dispomap: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
However, when I run a "clean install" it works and I don't get this message.
How can I resolve this?
This is my JDK settings:

Failed to load sbt configuration Play-Scala

i was trying to make a new project with play-scala in my activator, but i keep getting this error:
java.lang.NoClassDefFoundError: play/Play$
Use 'last' for the full log.
Failed to load project.
I found the answer here:
Why does sbt fail with NoClassDefFoundError: play/Play$ in Play 2.2.x projects after sbt compile in Play 2.3 project?
The project/play-fork-run.sbt file in the your-project-name\project folder needs to be removed if you tried the entire process through the "activator ui" web interface.

Installing Play framework on Mavericks, java 1.8.0_05

I am new to Scala/Java/Play Framework.
I followed the instructions at http://www.playframework.com/documentation/2.0/Installing to install Java 8 (along with Netbeans) and play framework for OSX.
I created a new Scala Application using "play new myappname" and all the template files have been created.
When I try to run the application using the command "play" from inside the project directory I see the following error:
error: error while loading AnnotatedElement, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken
(bad constant pool tag 18 at byte 76)
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] Not a valid command: play (similar: last, alias, loadp)
[error] play
[error] ^
How can I resolve this?
I fixed this by uninstalling JDK 8 and installing JDK 6 from the Apple Developer site at http://support.apple.com/kb/DL1572?viewlocale=en_US
(Side note: First I tried JDK 7 which failed with a similar yet different error).
Did you have a chance to look at this:
https://code.google.com/p/guava-libraries/issues/detail?id=1095

Maven Error in Eclipse - BPMN2 Modeler

my problem is the following. I have Eclipse Kepler SR1 and imported an maven project out of the following git: http://git.eclipse.org/c/bpmn2/.git/
This is a metamodel for the BPMN 2.0. After that i wanted to do a maven install but when i do this the following Error pops up
[ERROR] Failed to execute goal org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.0.3:sign (sign) on project org.eclipse.bpmn2: Could not sign artifact org.eclipse.bpmn2:org.eclipse.bpmn2:eclipse-plugin:0.7.0-SNAPSHOT: Connection to http://build.eclipse.org:31338 refused: Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :org.eclipse.bpmn2
Maven is correctly installed and i checked the superpom. There is no mistake in my opinion. I also updated the pluginRepository for plugin signin to https://repo.eclipse.org/content/repositories/cbi-releases/. Is there anyone who knows the mistake and can help me?
Best Regards
The first line of your error message contains a timeout for http://build.eclipse.org:31338 - that seems to me an internal address.
If I am not mistaken, this is used by the jar signer plug-in mentioned in the build script that is an eclipse.org-only service (for obvious reasons). Search for the followi
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-jarsigner-plugin</artifactId>
As signing is an internal service, we in the EMF-IncQuery project execute signing only when a specific profile is selected, thus allowing building our project outside eclipse.org servers.

"object github is not a member of package com" for a new Lift project

I'm starting my first Lift project using the documentation here:
http://cookbook.liftweb.net/#LiftFromScratch
I've created my build.sbt as instructed. The walkthrough then says:
Now that you have a the basics of an SBT project, you can launch the sbt console. It should load all the necessary dependencies, including the proper Scala version, and bring you to a prompt.
However, when I do that, I get the following error:
/Users/craig/myprojectdir/scala/build.sbt:9: error: object github is not a member of package com
seq(com.github.siasia.WebPlugin.webSettings :_*)
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
What's causing this, and how do I fix it?
Turns out I has the wrong path/filename for project/plugins.sbt. Presumably that's what was loading the "com.github" plugin to load; since the file was misnamed SBT couldn't find it.