gradle eclipse integration - - eclipse

I'm using a eclipse 4.2 distribution and have installed the gradle eclipse integration plugin from springsource.
When I initially try to create a quick java project with the wizard I get the following error:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at C:\devtools\gradle-1.4\docs\userguide\gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Could not fetch model of type 'HierarchicalEclipseProject' using Gradle installation 'C:\devtools\gradle-1.4'.
When I run gradle build in the command line everything's fine.
Any ideas how i could get this to work?
Cheers

Since you can run gradle in command line successfully, you would want to try to use that gradle in the eclipse plugin.
Set Preference -> Gradle -> Gradle Distribution -> Folder to your own gradle distribution that runs fine.

Related

running flutter app got Execution failed for task ':bluetoothadapter:compileDebugJavaWithJavac'

I didn't change anything in my Flutter application and it was running perfectly but when i tried running on real device i got this exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bluetoothadapter:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
BUILD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1
Check out this post for a workaround:
tools.jar seems to be not in Android Studio classpath on Windows 8
It seems, the tools.jar is not present on every version of Java 8 anymore. Also make sure to use a JDK and not a pure JRE for development.
Maybe it is worth downloading a current version of the JDK from https://adoptopenjdk.net

Unable to debug React Native using VSCode

Fresh init of a RN project with a fresh copy of React Native Full Pack in VSCode. I'm unable to get this new project to debug, but am able to get other projects to debug using the same methods. I've tried recreating the project and still no dice. I can use react-native run-android in a command prompt to get it to debug, but not VSCode. I keep getting this error:
events.js:167
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, lstat 'c:\Users\user\Documents\repos\app\android\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\android\support\asynclayoutinflater'
Emitted 'error' event at:
at NodeWatcher.<anonymous> (c:\Users\user\Documents\repos\app\node_modules\metro\node_modules\sane\src\node_watcher.js:291:16)
at c:\Users\user\Documents\repos\app\node_modules\graceful-fs\polyfills.js:282:31
at FSReqWrap.oncomplete (fs.js:158:21)
[Error] Error: Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101)
I've also tried running the packager first, but it still default to a --no-packager run.
Deleting and reinstall NPM packages seems to work some of the time. But a better way to fix this problem is to run gradlew.bat clean from inside the android folder of the RN directory, then rerun the packager and restart the app.
install NodeWatcher.
use this command in windows : npm install node-watch
also try this.
You can also clean your build cache and gradle cache.
For more detail about how to do it, check this article: How to clear gradle cache

Error on Ionic build Android?

i am working on a ionic application. I am getting an error while trying to build for android.
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error occurred during initialization of VM
Could not reserve enough space for object heap
From the message, seems it is caused by the JVM heap space when build the ionic project with gradle, please try to increase heap size in Java
The simple steps for windows system:
Config the GRADLE_OPTS or JAVA_OPTS in your local environment with following parameters
-Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m
(If you are using JDK8, the PermSize will be ignored.)
Ref
Configuring the build environment

Build Failure Error while doing maven install in command prompt

I am getting the below error while building the code in command prompt using maven install
[ERROR] Failed to execute goal com.overstock.mojo:svn-info-plugin:1.0:svn-info (default) on project SupplierOasis-automation: error in calling
[svnversion, .]: Cannot run program "svnversion" (in directory "D:\pxworkspace\SupplierOasis-auto
mation"): CreateProcess error=2, The system cannot find the file specified -> [Help 1]
[ERROR]
Please help me out in this regard.
try on command line
svn upgrade
then again run the build. It should fix this.
I've seen similar issues on a Mac if you recently upgraded XCode and have not yet accepted the license. Open XCode and accept the license.

IBM Worklight 6.0 - Build issues

I am just running a test app, and my build fails with the following logs, I have tried restarting, changing workpace, creating test app but dint work. please let me know.
ipad build failed: Cannot overwrite template file '/Users/mspssmac-pc232938/Documents/Projects/FnApp/testApp/apps/testApp/ipad/native/Settings.bundle/Root.plist'
[2013-08-23 12:04:10] FWLST1040E: iphone build failed: Cannot overwrite template file '/Users/mspssmac-pc232938/Documents/Projects/FnApp/testApp/apps/testApp/iphone/native/Settings.bundle/Root.plist'
[2013-08-23 12:04:10] A core eclipse exception has occurred: Failed to read project description file from location '/Users/mspssmac-pc232938/Documents/Projects/FnApp/testApp/apps/testApp/android/native/.project'.
Thanks
djrecker
Try deleting the native folder
Try running Eclipse with the -clean flag
Is this a shared workspace between Eclipses? Does it work with a local workspace?
See if this helps: Worklight on OS X, iPhone and Android builds fail due to missing info.plist and other files
You have also asked this here: IBM Worklight - Build failed
A common issue for all seems to be:
A core eclipse exception has occurred: Failed to read project
description file from location ... [path to .project file]