Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 931203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:27:45+00:00 2026-05-15T20:27:45+00:00

I have an IntelliJ project with eight modules and roughly 500 KLines of Java.

  • 0

I have an IntelliJ project with eight modules and roughly 500 KLines of Java. I added a Scala Facet to a module that depends on all the other modules.

When compiling HelloWorld.scala in IntelliJ IDEA 9.0.2:

object HelloWorld {
  def main(args: Array[String]) {
    println("Hello World!")
  }
}

I got the following output in the Messages panel:

Information:Compilation completed with 32 errors and 0 warnings
Information:32 errors
Information:0 warnings
Error:Scalac internal error: class java.lang.reflect.InvocationTargetException [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)][scala.tools.nsc.typechecker.Typers$class.newTyper(Typers.scala:68), scala.tools.nsc.Global$analyzer$.newTyper(Global.scala:295), scala.tools.nsc.typechecker.Namers$Namer.<init>(Namers.scala:68), scala.tools.nsc.typechecker.Namers$NormalNamer.<init>(Namers.scala:43), scala.tools.nsc.typechecker.Namers$class.newNamer(Namers.scala:44), scala.tools.nsc.Global$analyzer$.newNamer(Global.scala:295), scala.tools.nsc.typechecker.Namers$Namer$$anonfun$enterSyms$1.apply(Namers.scala:258), scala.tools.nsc.typechecker.Namers$Namer$$anonfun$enterSyms$1.apply(Namers.scala:256), scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61), scala.collection.immutable.List.foreach(List.scala:45), scala.tools.nsc.typechecker.Namers$Namer.enterSyms(Namers.scala:256), scala.tools.nsc.typechecker.Namers$Namer.enterSym(Namers.scala:347), scala.tools.nsc.typechecker.Analyzer$namerFactory$$anon$1.apply(Analyzer.scala:39), scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:276), scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:276), scala.tools.nsc.reporters.Reporter.withSource(Reporter.scala:48), scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:276), scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:252), scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:252), scala.collection.Iterator$class.foreach(Iterator.scala:631), scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:304), scala.tools.nsc.Global$GlobalPhase.run(Global.scala:252), scala.tools.nsc.Global$Run.compileSources(Global.scala:733), scala.tools.nsc.Global$Run.compile(Global.scala:813), scala.tools.nsc.Main$.process(Main.scala:108), scala.tools.nsc.Main$.main(Main.scala:122), scala.tools.nsc.Main.main(Main.scala), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)]
Error:sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Error:sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Error:java.lang.reflect.Method.invoke(Method.java:597)
Error:org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)
Error:Caused by java.lang.OutOfMemoryError: Java heap space
Error:scala.tools.nsc.typechecker.Typers$class.newTyper(Typers.scala:68)
Error:scala.tools.nsc.Global$analyzer$.newTyper(Global.scala:295)
Error:scala.tools.nsc.typechecker.Namers$Namer.<init>(Namers.scala:68)
Error:scala.tools.nsc.typechecker.Namers$NormalNamer.<init>(Namers.scala:43)
Error:scala.tools.nsc.typechecker.Namers$class.newNamer(Namers.scala:44)
Error:scala.tools.nsc.Global$analyzer$.newNamer(Global.scala:295)
Error:scala.tools.nsc.typechecker.Namers$Namer$$anonfun$enterSyms$1.apply(Namers.scala:258)
Error:scala.tools.nsc.typechecker.Namers$Namer$$anonfun$enterSyms$1.apply(Namers.scala:256)
Error:scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
Error:scala.collection.immutable.List.foreach(List.scala:45)
Error:scala.tools.nsc.typechecker.Namers$Namer.enterSyms(Namers.scala:256)
Error:scala.tools.nsc.typechecker.Namers$Namer.enterSym(Namers.scala:347)
Error:scala.tools.nsc.typechecker.Analyzer$namerFactory$$anon$1.apply(Analyzer.scala:39)
Error:scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:276)
Error:scala.tools.nsc.reporters.Reporter.withSource(Reporter.scala:48)
Error:scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:276)
Error:scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:252)
Error:scala.collection.Iterator$class.foreach(Iterator.scala:631)
Error:scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:304)
Error:scala.tools.nsc.Global$GlobalPhase.run(Global.scala:252)
Error:scala.tools.nsc.Global$Run.compileSources(Global.scala:733)
Error:scala.tools.nsc.Global$Run.compile(Global.scala:813)
Error:scala.tools.nsc.Main$.process(Main.scala:108)
Error:scala.tools.nsc.Main$.main(Main.scala:122)
Error:scala.tools.nsc.Main.main(Main.scala)

Why is this happening? I can successfully create a new empty project and compile and run this Hello World.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:27:45+00:00Added an answer on May 15, 2026 at 8:27 pm

    The problem is that you are running out of memory:

    Error:Caused by java.lang.OutOfMemoryError: Java heap space
    

    Thats probably because of the size of your project.
    You need to tune the JVM options -Xms and -Xmx for your compiler, so that it is allowed to use more memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using IntelliJ 8.1.2 on Windows to develop a Grails 1.1 project that depends
I have a project on intellij and now i wanna run it on intellinj
I have a project with 3 artifacts: common - entities, business logic. no UI
I've inherited an existing IntelliJ project and after spedning some time with it, I
I have a java application which has a GUI in both English and French,
When I start my project in Intellij 9 (#IU-95.66) I see a red popup
I am getting the following error when trying to update my project from Intellij
I currently use Apache Axis. But I am creating a new project in Intellij
I have a coworker who is looking to switch from InteilliJ Idea to Eclipse,
Have just started using Google Chrome , and noticed in parts of our site,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.