gradle project import failure - eclipse

I am trying to import an gradle project into my eclipse but facing some error,
I am adding the screenshot below
please help me sort out the problem

It seems it cannot allocate enough memory to start the daemon process. Can you try increasing the heap size of the JVM?
This webpage shows you how to increase Eclipse's heap size:
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

Related

GWT 2.5.1 Compile always throws Java Heap Space Error

Whenever I compile GWT 2.5.1 application. by right click on project and doing Run As-> Web Application (GWT Super Dev Mode), it never fully compiles and throws Java heaps space full error. Even when I increase the heap space size to as max as it can be, it is still throwing the same error. No matter what memory value I give, it always failes with heap space error. Can anyone help out?
How did you increase the heap space? In IntelliJ for example you need to explicitely give the build process more space:
Settings > Build, Execution, Deployment > Compiler > Build process heap size

Scanning Error during Import of Maven Projects into Eclipse

I have looked up the following error in numerous places but can't seem to get a consensus on the solution or one that works for that matter.
"Maven Projects
Scanning error[path to project]; java.lang.OutOfMemoryError: Java heap space"
I set MAVEN_OPTS to "-Xms512m -Xmx1024m -XX:MaxPermSize=1024"
The project I am importing is an assets project with many images, icons, .swf, and JS files.
Is there something else I need or am I setting the above in the terminal the wrong way?
Look at the maven build process in jvisualvm (from your jdk). There you can see how much memory is consumed. If you see that the build exceeds the 1024 MB, set -Xmx to a higher value. If you see that the maximal heap size is below 1024 MB, then your MAVEN_OPTS settings did not work.
Increase more heap size more again, Setting for JVM: http://www.wikihow.com/Increase-Java-Memory-in-Windows-7
Open Java mission control to see RAM, heap size usage. It will give you insight to good decision how much memory size is suitable.
http://www.oracle.com/technetwork/java/javaseproducts/mission-control/java-mission-control-1998576.html

Why does gradle project creation take SO LONG with eclipse STS plugin?

I just installed a brand new eclipse mars and Spring Tool Suite 3.7.1. And I started with an empty workspace.
I create a gradle project as below:
But it seems to take forever to Create Gradle project.. as below:
Even I force to exit eclipse, it remains there and block the eclipse from exiting. As below:
I have to kill it with task manager.
Why is it so difficult to create a simple gradle project?
ADD 1
Just see this, it seems working.
https://www.timroes.de/2013/09/12/speed-up-gradle/
It takes a long time the first time because all the dependencies are being downloaded to local cache as part of the project setup. Just be patient it should complete eventually (unless there's something preventing gradle from accessing the internet).
The second project you create should be a lot faster as all the dependencies will already be locally cached.
If it already took too much time during the build. Then probably everything got downloaded. Just try switching off the internet during import. That worked for me...

Intellij resolving issues with scala

I am using Intellij Idea (v13/v14) for a scala project. IntelliJ is not resolving the classes and showing them in red colour. However, compilation works fine. Because of that, it is not possible to navigate to the other classes from a file.
Can anyone tell me how to fix this problem? It is making me crazy!!!
I would suggest to use IntelliJ 14 and get updated Scala plugin in first place. Then, open the project and invalidate cache.
https://www.jetbrains.com/idea/help/cleaning-system-cache.html
I guess either
The directory containing the source code is not marked as "source root" or
Intellij runtime memory size is small. Try increasing the values in idea.properties,

IntelliJ increase Scalatest Heap space

I'm using IntelliJ to run Scalatest tests. Problem I'm having is the tests are running out of Heap space (likely because my tests are using Selenium and starting up jettys to hit my Api).
I know how to increase my Heap space in IntelliJ but after increasing the space the tests still run out of Heap.
Is there a different place to increase Heap space for tests rather than the usual IntelliJ info.plist (oh btw I'm on Mac)
go to Edit Configurations:
Choose the test on the left, and tweak its VM options:
In case you are using a ScalaTest ant task, there is a jvmarg that you can set:
<jvmarg value="-Xmx2048m -XX:MaxPermSize=128m"/>
As you rightly observed, it is not IDEA's heap size that needs to be increased but rather that of the ScalaTest run configuration accessible from the Run > Edit Configurations... dialog. There, you should be able to set the VM Options for the tests you are trying to run.