dummydummy
dummydummy

Reputation: 111

How do I fix an error in intellij that prevents me from running my projects

This Error showed up in my IntelliJ and now whatever project I try to run it's just not happening and the same Error shows up again and again and nothing seems to work. I restarted the program, deleted the .idea folder as I read some other blogs, but it's not fixing anything.

Error:Module 'JavaFundamentals' production: java.lang.ClassCastException: class org.jetbrains.jps.builders.java.dependencyView.TypeRepr$PrimitiveType cannot be cast to class org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType (org.jetbrains.jps.builders.java.dependencyView.TypeRepr$PrimitiveType and org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType are in unnamed module of loader java.net.URLClassLoader @2ff4acd0)

Upvotes: 8

Views: 15692

Answers (4)

Ola Lekan
Ola Lekan

Reputation: 11

I just encountered this same error "Production production: java. Lang...." and I just clicked on build then rebuild. Let me know if that Helps. Thanks.

Upvotes: 1

Adesipe Adeola
Adesipe Adeola

Reputation: 151

Just came across the same problem and I just clicked build on the menu and click on rebuild.

Upvotes: 13

Peter
Peter

Reputation: 5194

Follow the instructions found in answer: Can't compile java project on intelij Idea 14 CE

This answer (Error:Module 'name' production: java.lang.NullPointerException) let me assume that the scala plugin could be the real cause, as @Andery already mentioned in the comment.

Let us know if that helps.

Upvotes: 0

CobaltGecko
CobaltGecko

Reputation: 228

I found something from someone having a similar issue, try this:

In menu "Build > Rebuild project". In menu "File > Invalidate caches / Restart... > Invalidate and Restart". Remove last installed/enabled plugins if any. Check dependencies (especially cyclic-dependencies) in "File > Project Structure... > Modules" The last chance: make backup & remove .idea folder from your project directory and create new project from scratch.

Upvotes: 5

Related Questions