I have downloaded the zip folder of neo4j community edition version-2.3.1 in order to start connecting the neo4j server through Java code. I want to create graph database for indexing of the data. Followed this link originally.
PROBLEMS
I'm unable to start the neo4j server as the batch file is deprecated and it displays the following message:
Tried using the PowerShell scripts commands also with reference to this link, it just opens the script file. the server is not started with these commands.
Where I am going wrong and what is the right procedure to start the local neo4j server and connect it through Java code to create nodes and relationships of the graph.
The batch file will still work even though it has been deprecated. It appears that the batch file cannot find the Findstr command.
findstr.exe should be in %windir%\system32\
If it is there and you are getting the findstr is not recognized as an internal or external command” error, check that %windir%\system32\ is in your PATH.
Once that works, try the Neo4j.bat file again.
And as Anton mentioned, please explain how the Powershell didn't work and what actions you took.
Related
I've tried several times to run an Apache Nifi server, but it won't work. I'm using windows 8 and installed java version 8.
I get this error message:
'nifi-env.bat' is not recognized as an internal or external command, operable program or batch file.The JAVA_HOME environment variable is not defined correctly.Instead the PATH will be used to find the java executable.
Error Screenshot:
I've tried the solution to the following similar problem, but this did not help:
Nifi commands on windows
I've also tried what is explained in this video, but this did not work either:
How to Install Apache NiFi and run Simple Process
What should I do in order to run the nifi?
There seems to be a Java installation error, which is affecting the nifi-env.bat file. Problem will be solved if you create a virtual environment with java. The following link explains how to create a Java Virtual environment. This will also solve the problem with 'nifi-env.bat' is not recognized as an internal or external command as in that case nifi would only be able to be run within the virtual environment.
Try to troubleshoot the problem by reinstalling java, if the above doesn't work out.
I have pulling my hair off for this, but I discovered the directory which holds nifi, must have not spaces.
My folder's name was "apache nifi" and there I unzipped the download from apache nifi's website, but after one hour I realized the name could be the problem, and actually it was. I just changed folder's name from "apache nifi" to just "nifi" and voilá, it just runs.
Check if JAVA_HOME path is set properly.
My Requirement is to export mappings from informatica Server.i am using pmrep command for the same .Currently i am running pmrep command on the machine on which informatica server is Installed and its exporting successfully on the same machine after running command.But My req is to run the command remotely from some other machine and want to store mappings on my local system not on the machine on which Informatica server is installed.Is there any possible way to do that. or some other command which do the needfull. Hope my Requirement is clear to all.Can anybody help me out with some solution..
Thanks.
You have to login to the informatica server using ssh and run the export. After the export file is created, you can do FTP to download the file to your local machine.
All you need is a properly configured client machine. Try installing the client, run pmrep and get back with the details if you'd be getting any errors and would need some help.
Hi,
You can have a script once the mapping is imported in the server, move or copy the mapping in to your local path. The script should include url and password of the local machine
1)I partially connected to remote machine and use WinRm through Java to execute .bat file using xebialabs.overthere jars, which got rejected due to licence issue.
2) I even tried to connect remote machine and run batch file through PSExec (without using WinRm), but due to constraints of installing PSExec to our Master machine, this solution was scrapped.
Please help me if there is any way to get this done.
Thanks in Advance
I hav made a java application using Java Swing. It uses derby db for database and host=localhost.
I am able to start database and connect it to my application using command prompt in windows.But to deploy my application want this to happen automatically with the help few lines within my java program.I tried executing commands in a .bat file but with it black window of command prompt always remains open which I don't want.So I tried doing this:-
Process pserver=Runtime.getRuntime().exec("cmd /c set DERBY_HOME=E:\\db-derby-10.9.1.0-bin");
ProcessBuilder pb = new ProcessBuilder("C:\\Program Files\\Java\\jdk1.6.0_33\\bin\\java", "-jar", "E:\\db-derby-10.9.1.0-bin\\lib\\derbyrun.jar server start");
pserver= pb.start();
pserver=Runtime.getRuntime().exec("cmd /c set DERBY_INSTALL=E:\\db-derby-10.9.1.0-bin");
pserver=Runtime.getRuntime().exec("cmd /c start set CLASSPATH=%DERBY_INSTALL%\\lib\\derbyclient.jar;%DERBY_INSTALL%\\lib\\derbytools.jar;. ");
I also tried using API http://db.apache.org/derby/docs/10.0/manuals/admin/hubprnt14.html-NetworkServerControl. I am unable to understand what package to import and which all libraries to include.
Someone please help me connecting my java application with derby database eitherby API or by using Process and RunTime class or some better method.
Perhaps you don't need to run Derby as a Network Server. Why don't you just use Derby in embedded mode instead? See this section of the documentation for more information: http://db.apache.org/derby/docs/10.9/getstart/cgsquck70629.html
I found out what the problem was. I was trying to start the database server using the user interface of netbeans (JavaDB), which works only in netbeans IDE and doesn't put any code in program automatically as it does for other components. So to start and stop the DB serverin an external environment I had to explicitly type the code as given in http://db.apache.org/derby/docs/10.8/adminguide/tadminconfig814963.html.
I have a problem connecting to IBM (universal) database using JDBC. I wrote the code in Notepad using Java and I loaded drivers of IBM database i.e(driver name and connection URl). When I run the code using general compilation (javac code.java and java code) I am getting an error message "cannot find the driver" but I specified the correct driver name for that. Actually I did this program using Eclipse using the same database with same driver name and all and finally I succeeded, but I cant get this without using an IDE. So please help me how to connect without the IDE and how to run it in a command prompt.
You need to include the necessary JAR files on the classpath when you run your program on the command line.
If you're using IBM's DB2 UDB database, the required driver file is db2jcc.jar, and I think db2jcc_license_cisuz.jar and db2jcc_license_cu.jar are necessary for licensing as well. Search for those files, and include them on the classpath when you run your program from the command line.