Exception when installing Gradle 2.5 - command-line

So when I attempt to run Gradle 2.5 using the gradle command in cmd.exe I get the following exception.
Before attempting to run the program, the gradle client gives me the correct feedback when I enter gradle -v into cmd.exe indicating I have successfully added it to my PATH variable.
Is this a Read Write Execute problem in my System32 folder? I am administrator and as such believe I have all permission access?
Any help much appreciated.

Gradle assumes that you're running in a project directory and will create a cache in the current working directory as soon as you run anything other than gradle -v or gradle --version.
The system32 directory is rather special, so even if you run gradle as an administrator, you might not have write permissions for it as there maybe a secondary check that Windows performs.
If you really want to do this (I don't know why you would), have you tried running the command prompt as administrator? You can right-click on any shortcut for the command prompt and select 'Run as Administrator'.

Related

Netbeans 8.2 installer fails on Windows 7

Getting
java.io.IOException: Cannot run program "C:\Program Files\NetBeans
8.2\bin\netbeans.exe" (in directory "C:\Program Files\NetBeans 8.2"):
CreateProcess error=2, The system cannot find the file specifiedat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
I tried downloading and installing netbeans and the JDK bundle and still getting this. Might be netbeans independent but my system that's causing it.
Note the location of the installer.
Open a Command Prompt running as administrator:
2.1. Go to Start button > All Programs > Accessories
2.2. Right click Command Prompt
2.3. Select Run as administrator
In the Command Prompt use the cd command to change to the directory containing the installer.
Execute the following command to extract the contents of the installer: [Note: You might need to change the name of the installer to match the one you have.]
netbeans-8.2-ml-java-windows.exe --extract
Execute the following command to manually execute the installer:
java -jar bundle.jar
You will see rapid scrolling output in the Command Prompt window for a few moments, then the installer window will appear to begin the installation process.
Once Netbeans is installed on Windows 7, you may also need to run Netbeans as an Administrator--especially for database, web application and web services development, which each require server resources.
Source

Failing to build Xilinx project from command line only

I have been tasked with creating a build server for a Xilinx project. The developer for the project provided me with the steps he manually takes to do a build, and those work fine. I am now trying to do the build via the command line, so I can set up a script to do the build. From my understanding, the command:
ECLIPSECPATH\eclipsec.exe -nosplash -vm “JAVAVMPATH\jvm.dll” -application org.eclipse.cdt.managedbuilder.core.headlessbuild -build all -data WORKSPACE -vmargs -Dorg.eclipse.cdt.core.console=org.eclipse.cdt.core.systemConsole
Should be the correct command to perform the build (the all caps names being file paths to the various files needed). I use the same command for importing (except -import instead of -build), which does work correctly. But when I run the command, it returns a bunch of errors that are either "Cannot run program "make": Launching failed" or "Error: Program "make" not found in PATH".
The build works just fine when building from the GUI, and I didn't have to use the Tool Change Editor to change anything (it worked by default). Am I missing something from my command, or is there something else I need to set? Are the projects just missing something needed? I'm not a developer, but I would think if it builds from the GUI, the projects have everything they need to build.
I have a project where I run a Xilinx eclipse project in headless mode. It is on a Linux system, but I think what I am about to say applies to windows too.
When one of the Xilinx GUI apps run the first thing they do is source some environment settings. If you are not sourcing this before you run the command line above then you may be missing some paths in the environment, in particular the path to "make" which is not part of windows.
There is a batch file under C:\Xilinx\SDK\2014.4\ (or whichever version you have installed) called settings64.bat.
Running this before the eclipse command line should setup the tool environment you require.
C:\Xilinx\SDK\2014.4\settings64.bat
As part of the setup I also run this to help setup the workspace.
xsdk -wait -script sdk.xml -workspace WORKSPACE

Cordova build command failed

Running command "cordova build" on command prompt result in built failed. Found underneath the error sample. Can someone help me for a quick fix. The aim is to run my first phonegap android hello world project but am stuck with this error.
Try this one
Download ant for windows, http://ant.apache.org/bindownload.cgi. Extract and place it somewhere in your computuer.
Open your CMD and type this command.
SET ANT_HOME=%PATH%;c:\apache-ant-1.9.4-bin
Restart your computer.
http://blog.revivalx.com/2014/11/02/common-errors-during-developing-android-app-in-mac-linux-and-windows-platform/

Failing to run command in makefile project in Eclipse

I have a problem when i try to build my makefile project within Eclipse on Linux OS. Whole makefile executes fine except for the last command which is unsimgcr -pd input output. I get an error /bin/bash: unsimgcr: command not found.
The weirdest thing is that if i run make command from linux terminal the makefile executes fine no problems. I think I should set something within Eclipse IDE, but I don't know how and help would be appreciated.
Likely unsimgcr is in your path when you run it from the command line but not in the path when run from eclipse. Either fix the path issues, or put an absolute path to unsimgcr in the make file.

Remote GDB with Eclipse

I'm trying to debug an application remotely with Eclipse CDT.
I got gdbserver and gdb running so I can debug via command line.
I'd like to integrate this stuff into Eclipse. I create a .gdbinit file in my home directory which is corretly loaded by Eclipse. However when i start the debug process I get
"the remote target does not support run"
From the command line, I can use "continue" instead, which work. However I cannot use this alternative from CDT since it is somehow automated.
How can I get Eclipse to use continue instead of run, or how can I make my gdbserver to accept run instead of continue?
If your gdb is recent enough to support the alias command, then you can include the line....
alias run = continue
in your .gdbinit file.