neo4j shell script issue - windows

Windows 7, Neo4j Community Edition - freshly installed.
I'm new to neo4j and I want to run some Cypher commands in a batch. I've read about the neo4j shell, so I tried to run it.
I'm getting the following error regardless of whether I run it from the "command prompt" at the desktop or starting a new cmd session:
neo4jshell
(a bunch of DOS stuff)
D:\AppData\Neo4j\Sports2000>pushd "D:\APPLIC~1\NEO4JC~1.1\bin\..\lib"
The system cannot find the path specified.
followed later in the batch file by:
D:\AppData\Neo4j\Sports2000>java -classpath ;"" -Dapp.name="neo4j-shell" -Dapp.repo="D:\APPLIC~1\NEO4JC~1.1\bin\..\lib" -Dbasedir
="D:\APPLIC~1\NEO4JC~1.1\bin\.." org.neo4j.shell.StartClient
Error: Could not find or load main class org.neo4j.shell.StartClient
Reading the shell command it references to a zip version of Neo4j, and links to the front page of the Neo site which has no reference to a .zip file that I can see.
It looks like this is a packaging issue with my version of Neo4j:
Neo4j Error: Could not find or load main class org.neo4j.shell.StartClient
And upgrading to version 3 hasn't fixed the problem. Installing version 3 and then installing the zip file has gotten me a working powershell prompt.

From the Neo4j desktop app choose "Options", then "Command Prompt", then run Neo4jShell.bat at the command prompt.
See this post for more info.

Related

GRASS GIS: r.diversity

I lauched the script r.diveristy.py in GRASS GIS 6.4.3 from launch script option in file menu. After that the r.diversity GUI appeared in which I gave the input and the output file name and then run. The following error message is displayed:
C:\PROGRA~1\QGISCH~1\bin\python.exe: can't open file
'r.diversity.py': [Errno 2] No such File or directory.
How can I solve the problem?
GRASS GIS 6.4.3 is rather old and there were problems with running Python scripts on MS Windows (r.diversity is a Python script). Install the latest release (currently 7.0.4) and install the r.diversity module from Addons again. There was a lot of improvements regarding Python scripts in the 7.0 series.

Jdeveloper 12.1.2 installation (CMD property not found error)

I was trying to install jdeveloper12.1.2 which i downloaded from oracle web site but when I was trying to install it i got this error CMD property not found in autorun.inf.
Installation of 12 c is not same as 11g . We are acquainted with the direct running of installer or .exe file in 11g but for 12 c the process is bit different. I search various answer but none of answer worked perfectly .
Here I will guide you with simple steps, just follow below steps patiently.
Download the installer file and unzip to a directory (Here I have unzipped to D:\Software1).
After unzipped u will find a folder named Disk1.
Open your command prompt with admin privilege.
Go to folder Disk1 by using command cd Software1\Disk1
Run the command C:\"Program Files (x86)"\Java\jdk1.6.0_38\bin\java.exe -jar install/modules/ora-launcher.jar DISKCNT=1 JRE_COMPONENT=oracle.jdk,oracle.jre
Give your JDK path .. on previous command I have given mine.
Then follow wizard instructions for jdeveloper studio edition.
I have attached image for the command prompt, Please follow it

Error starting groovyserver \Groovy\Groovy-2.3.3\bin\.. was unexpected at this time

I have just downloaded and installed Groovy 2.3.3 using the Windows installer. While trying to run some of the examples using groovyclient (which tries to start groovyserver), I receive the following error.
\Groovy\Groovy-2.3.3\bin\.. was unexpected at this time.
My Groovy_Home is as follows:
GROOVY_HOME=C:\Program Files (x86)\Groovy\Groovy-2.3.3
The full output is as follows:
C:\Users\Greg>groovyserver
Groovy home directory: "C:\PROGRA~2\Groovy\GROOVY~1.3"
Groovy command path: "C:\PROGRA~2\Groovy\GROOVY~1.3\bin\groovy.bat" (found at GR
OOVY_HOME)
\Groovy\Groovy-2.3.3\bin\.. was unexpected at this time.
I am running on Windows 7 Home Premium - 64 bit
Not sure if this is a universal solution but here's what worked for me on two separate machines running Windows 7 Home Premium (64) and Windows 7 Enterprise (64).
I tried this out with both Groovy 2.2.1 and Groovy 2.3.4
I simply uninstalled Groovy and installed it again, this time outside the Program Files directory. The groovyclient and groovyserver tools started working properly and I no longer get these errors.
Apparently, Groovy has some trouble running the executables if they're installed in Program Files. I'm not sure why this happens. I suspected that it may have something to do with spaces in the catalog's name but I successfully ran groovyclient installed in such a directory ( C:\Groovy\Test groovy with spaces\Groovy-2.2.1 specifically). Therefore, I suspect this has something to do with permissions.
If anyone has an idea why this happens, feel free to expand upon this answer. Maybe the exact reason this error occurs is different and I just managed to work around it by changing the installation directory.

maven doesnt seem to be installing with springsource tool suite

I recently installed the springsource tool suite plugin for eclipse, running on windows 7. But when I open a command prompt (by typing cmd in the windows start menu) and type in:
mvn --version
I get the following response:
'mvn' is not recognized as an internal or external command, operable program, or batch file.
So I then downloaded the stand-alone version of springsource tool suite, which is not what I want. And nonetheless, I still get the same response on the command line when I type in mvn --version. Can anyone tell me how to fix this problem?
I get the same response when I type in java -version . So this might be a command prompt problem. I a following the exact syntax from web tutorials.
EDIT:
I just tried to download m2e in the eclipse marketplace, but got the message that there is nothing new to install. This seems to indicate that I have maven installed, so then how do I access it via the command line in windows 7?
You have to configure your Maven environment variable to be able to use it in the command prompt.
In your case there's no need to download the maven binars because it comes with STS, just find the Maven folder inside the STS directory.
"___" is not recognized as an internal or external command
is shown when program is not installed or the path of that program is not set (to execute from other path).
remember, in "STS", maven is not configured to work out of STS (and terminal usage is out of STS usage).
we have to install it.
maven download link is here
download latest maven from here
extract it where ever you want.
i extracted as below (see the bin,boot,conf,... folders are shown below as in the image):
as this maven download is extracted from zip file (it is not setup), you will have to add this extracted path to "PATH" variable in windows environment.
follow this to set environment path:
now "mvn" command must work.
but
in my case i had to restart STS (spring tool suit) for this to work

GAE Go Windows - "Cannot run program", "is not a valid Win32 application"

I've been trying to run a GAE Go project I developed on my Mac on my Windows machine with GoClipse after installing and configuring the appropriate SDKs and so forth. When attempting to run the project, I get this error:
Exception occurred executing command line. Cannot run program
"C:\GoogleAppEngine\dev_appserver.py" (in directory
"D:\Golang\workspace\Project\src\pkg"): CreateProcess
error=193, %1 is not a valid Win32 application
How can I fix that error in order to run my project?
While the below configuration works on the Mac as it has Python installed by default, Windows requires a different configuration.
On Mac the GoClipse External Tools Configuration would be:
Location: /GoogleAppEngine/dev_appserver.py
Working Directory: ${workspace_loc:/Project/src/pkg}
Arguments: .
The Windows configuration should look like:
Location: C:\Python27\Python.exe
Working Directory:
Arguments: C:\GoogleAppEngine\dev_appserver.py "${workspace_loc:/Project/src/pkg}"
Trying to run .py (Which IMO is a Python file?) wont work directly on windows. You will need to install Python and then pass the above filename to Python something like (I don't know Python so don't go by exact syntax, you might need to look around)
python "C:\GoogleAppEngine\dev_appserver.py
The reason it's working on Mac is because Python comes pre-installed on mac as cited here But on windows it doesn't. So you can install Python and add the Python's bin folder to path, and then run above script and it should run fine!

Resources